diff options
author | Marco Leise <marco.leise@gmx.de> | 2016-01-24 12:50:03 +0100 |
---|---|---|
committer | Marco Leise <marco.leise@gmx.de> | 2016-01-24 12:50:03 +0100 |
commit | 4175204b605fd4e62251a60beb73c19faaef3799 (patch) | |
tree | da67a12db05c994ea41aec6b4dd023945de5a30d /dev-libs | |
parent | Merge pull request #31 from gagern/incdir (diff) | |
download | dlang-4175204b605fd4e62251a60beb73c19faaef3799.tar.gz dlang-4175204b605fd4e62251a60beb73c19faaef3799.tar.bz2 dlang-4175204b605fd4e62251a60beb73c19faaef3799.zip |
GtkD version bump to 3.2.2
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/GtkD/GtkD-3.2.2.ebuild | 111 | ||||
-rw-r--r-- | dev-libs/GtkD/Manifest | 2 |
2 files changed, 113 insertions, 0 deletions
diff --git a/dev-libs/GtkD/GtkD-3.2.2.ebuild b/dev-libs/GtkD/GtkD-3.2.2.ebuild new file mode 100644 index 0000000..3f227ef --- /dev/null +++ b/dev-libs/GtkD/GtkD-3.2.2.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="D binding and OO wrapper of GTK+ and is released on the LGPL license" +HOMEPAGE="http://gtkd.org/" +LICENSE="LGPL-3" + +SLOT="3" +KEYWORDS="~x86 ~amd64" +SRC_URI="http://gtkd.org/Downloads/sources/${P}.zip" + +DLANG_VERSION_RANGE="2.064 2.066-" +DLANG_PACKAGE_TYPE="multi" + +inherit eutils dlang + +DEPEND="app-arch/unzip" +RDEPEND=" + >=x11-libs/gtk+-3.18:3[${MULTILIB_USEDEP}] + sourceview? ( >=x11-libs/gtksourceview-3.18:3.0 ) + gstreamer? ( >=media-libs/gstreamer-1.6:1.0 ) + vte? ( >=x11-libs/vte-0.37.4:2.91 ) +" + +GTKD_USE_FLAGS=(gtk opengl sourceview gstreamer vte ) +GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv gstreamerd vted ) +GTKD_SRC_DIRS=( src srcgl srcsv srcgstreamer srcvte) +IUSE="${GTKD_USE_FLAGS[@]:1} static-libs" + +MAJOR=$(get_major_version) +MINOR=$(get_after_major_version) + +src_unpack() { + unzip -q "${DISTDIR}/${A}" -d "${S}" +} + +d_src_compile() { + compile_libs() { + # Build the shared library version of the component + if dlang_has_shared_lib_support; then + dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so.0.${MINOR} \ + lib${LIB_NAME}-${MAJOR}.so.0 -Isrc ${GTKD_SRC_DIRS[$i]}/*/*.d + else + ewarn "${DC} does not have shared library support." + ewarn "Only static ${LIB_NAME} will be compiled if selected through the static-libs USE flag." + fi + + # Build the static library version + if use static-libs; then + local libname=lib${LIB_NAME}-${MAJOR} + if [[ "${DLANG_VENDOR}" == "DigitalMars" ]]; then + dlang_exec ${DC} ${DCFLAGS} -m${MODEL} ${SRC_DIR}/*/*.d -Isrc -lib \ + ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a + elif [[ "${DLANG_VENDOR}" == "GNU" ]]; then + dlang_exec ${DC} ${DCFLAGS} -m${MODEL} ${SRC_DIR}/*/*.d -Isrc -c \ + ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.o + dlang_exec ar rcs ${libname}.a ${libname}.o + elif [[ "${DLANG_VENDOR}" == "LDC" ]]; then + dlang_exec ${DC} ${DCFLAGS} -m${MODEL} ${SRC_DIR}/*/*.d -Isrc -lib -od=${SRC_DIR} -oq \ + ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a + fi + fi + } + + foreach_used_component compile_libs +} + +d_src_install() { + install_libs() { + # Install the shared library version of the component + if dlang_has_shared_lib_support; then + local libfile="lib${LIB_NAME}-${MAJOR}.so" + dolib.so "${libfile}.0.${MINOR}" + dosym "${libfile}.0.${MINOR}" "/usr/$(get_libdir)/${libfile}.0" + dosym "${libfile}.0.${MINOR}" "/usr/$(get_libdir)/${libfile}" + fi + + # Install the static library version + if use static-libs; then + dolib.a "lib${LIB_NAME}-${MAJOR}.a" + fi + } + + foreach_used_component install_libs +} + +d_src_install_all() { + # Obligatory docs + dodoc AUTHORS README + + # Include files + insinto "${DLANG_IMPORT_DIR}/gtkd-${MAJOR}" + + install_headers() { + files="${SRC_DIR}/*" + doins -r ${files} + } + + foreach_used_component install_headers +} + +foreach_used_component() { + for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do + if [[ ${GTKD_LIB_NAMES[$i]} == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then + LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@} + fi + done +} diff --git a/dev-libs/GtkD/Manifest b/dev-libs/GtkD/Manifest index 72e059a..905293d 100644 --- a/dev-libs/GtkD/Manifest +++ b/dev-libs/GtkD/Manifest @@ -1,5 +1,7 @@ DIST GtkD-2.4.2.zip 4190939 SHA256 7b3662a4433d64808224c227b3d365cb70b08984f4936e2e5b45be0f2488c722 SHA512 2d936c9ab69f8ea6fbd91696c91f04820f579e3cdb85914cda6611ac675dadd0d6e8d792ffced640097797f6851016474fadf964e2fc5032262c0945b875cd46 WHIRLPOOL fad54fdaee27381ba88733dbde7221e41fa5aa26f8727a76b3a2f1814796491f11fc2f45a7feda895ccfe81bfa84adb59ac31080ec424ff148e161ec15024435 DIST GtkD-3.1.5.zip 3868998 SHA256 c00d45e6223a20e96bdcc0b6a657efde89e6d8514bbea9ba82fb3c602acc5256 SHA512 853997770a2700a5389a3136843e4dbf1434a5c833cd59df2fbe9c720489cf7cdfdfda877f721d4b247997319e528630f594c38bf95b0fa05b3395ce86ce1365 WHIRLPOOL 905e65f2f6f8cbf516c4cec443377f753bd87603c0e1ee61dd06f98f57a3cc2a00c3a8dd8aa62e83e611981bd5b904a7466896ce4511003dac6b9fc05d694518 +DIST GtkD-3.2.2.zip 3949001 SHA256 bce3008988de40e3a5a0d3b90ec927d58f323003681f157e07b6dcce79349424 SHA512 55229352974572402eb63a2fc539c9f175e434e1e61b9f31eb914fca5908bd6f7356f703870e7f82f85f2f4d703041497dca9cd91175a86a05caa1687e3d6c1d WHIRLPOOL df5302b6ff3ee8f7b4ddeb2d65b6430da19687a93102fba9dbe4da63ff062cb646e936f05bf0cac57aaefcbf5edba9d85a6ac48212397c8611ab7f0c95f219cc EBUILD GtkD-2.4.2.ebuild 3156 SHA256 84887dfa7cce54e40a180c7913c1ad05cb3e418fab4c2549c3f0810fd9d792bf SHA512 54408043f50e51f51939ce031b7bd7dfaf93366095d2395be2c4aad085de0d759d9057cfbb745b076a0fc0f24fa1314774f0b15bc422eee717cf0d232197e999 WHIRLPOOL 77dad53d06e6688d92a90c93a3539d99940fd52fbde47bf328e5fbf8c5cf6f7a0e75fa6f84ea879e562a835dc10907b224f105088281eecda1f5ec7e0169d099 EBUILD GtkD-3.1.5.ebuild 3126 SHA256 c2d912d7a2853d55df68001520bd1ac4058223534613f3c9c407c79b6c72058d SHA512 9869367c3a0972bfc20addac594ae76d16eca1c4263fea1c37507a041b9b5205f0255c7b062866740b7bbc7f023a59c158ef1cd66721d4e6a08cf581da0e12ab WHIRLPOOL 0760fcdcd5dec1d1c4069b44eaa6a2dc27b75172302c44522be6ccc0f103f09e19cc56ce91a283a003af455b43284068aeea97386b777d6291a18bfc8aa23ceb +EBUILD GtkD-3.2.2.ebuild 3128 SHA256 ddc097f1316b9c00c924a6f134535d9ea42035eafa8cfadc6914901b0be63c47 SHA512 f2f2e8d24632c61dc98987824fc3e7ef30e032beb3b998c4f76de0e88d7343147ab59242b09dde486b0a5848d5952afde8cba209b431c5ae026c56275a267285 WHIRLPOOL 744b84f57cef911c8c4c9d1f11e4650c2e956efb0a07d2e07121d4eae6a23574d6b26af85859fe4215795b5c70ae70e63c7ba92000fa36b199ed6702110c6c45 MISC metadata.xml 553 SHA256 e89d09066ec09cbf55d813c249729e15193af20a58213ef16e935dc49094d206 SHA512 aa2d6660155af51a62dc902812d6880e42410a093f0371db5104b025ed4c3caa79da03bc04cac4d97501a346f61cbcc224c021676d6d67c7b106d93543f8ae52 WHIRLPOOL 64373b47e50acb776e1f282203745e7b4dc62e05e3df16d7442fc16a4ac17126fb25ea547c678feaf4ece4936e3a6db8a0c81422b5a8f51a65d88c850f30a39b |