diff options
author | 2017-10-02 03:48:46 +0200 | |
---|---|---|
committer | 2017-10-02 05:02:48 +0200 | |
commit | 3f9afdbf66103b562c2d95e5facf10067190775c (patch) | |
tree | b21d3fcf80b2ba6d184e7ba479b7063f41945ad6 /dev-libs | |
parent | ldc2-0.17.5 (diff) | |
download | dlang-3f9afdbf66103b562c2d95e5facf10067190775c.tar.gz dlang-3f9afdbf66103b562c2d95e5facf10067190775c.tar.bz2 dlang-3f9afdbf66103b562c2d95e5facf10067190775c.zip |
gtkd-3.6.6
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/gtkd/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/gtkd/gtkd-3.6.6.ebuild | 113 |
2 files changed, 114 insertions, 0 deletions
diff --git a/dev-libs/gtkd/Manifest b/dev-libs/gtkd/Manifest index f15ac70..908f4ae 100644 --- a/dev-libs/gtkd/Manifest +++ b/dev-libs/gtkd/Manifest @@ -1,2 +1,3 @@ DIST GtkD-2.4.2.zip 4190939 SHA256 7b3662a4433d64808224c227b3d365cb70b08984f4936e2e5b45be0f2488c722 SHA512 2d936c9ab69f8ea6fbd91696c91f04820f579e3cdb85914cda6611ac675dadd0d6e8d792ffced640097797f6851016474fadf964e2fc5032262c0945b875cd46 WHIRLPOOL fad54fdaee27381ba88733dbde7221e41fa5aa26f8727a76b3a2f1814796491f11fc2f45a7feda895ccfe81bfa84adb59ac31080ec424ff148e161ec15024435 DIST GtkD-3.5.1.zip 4204840 SHA256 7a6ccd17c73be12f757ab6fc876eb0733a73cf90beeed703c27f13e8a2a931a1 SHA512 ee343906f21ed9c067784a51548ccbd33bdbe0a2810865a1ef9ac2d86d17b6ed77371b7e42a2a9bf2b838f389a07b0d25f3d8d2cea023ece77b5342df54d974e WHIRLPOOL 77037837b1e6d3482909b96e33378a61bcd9f1b247c5ac4d459da76f50e28b806934f932c6415677618f35137c0e110aa6f241ece08042d10a57a6419543baaa +DIST GtkD-3.6.6.zip 4386468 SHA256 2618ea179325a8650da6d47598bd7f9e16dc53f675e9252aef35ef38303e4c63 SHA512 234fd996cbcf7c6f9e1468e4f6847f185523f26572e5570f81b0fde5f2c67e6e6329e7dd075a440489c0510278854d19cf3227ef9334e9bc98fb5c48f28be8f6 WHIRLPOOL 28a561a3623044ff7f156f374f3c5f300f21741c3d4195f95f29f036161b88f664f2abb1ad6c303764a69ea6d9905719365dcc3705161bdd0a0b50e01b873976 diff --git a/dev-libs/gtkd/gtkd-3.6.6.ebuild b/dev-libs/gtkd/gtkd-3.6.6.ebuild new file mode 100644 index 0000000..b5772ff6 --- /dev/null +++ b/dev-libs/gtkd/gtkd-3.6.6.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+" +HOMEPAGE="http://gtkd.org/" +LICENSE="LGPL-3" + +SLOT="3" +KEYWORDS="~x86 ~amd64" +SRC_URI="http://gtkd.org/Downloads/sources/GtkD-${PV}.zip" + +DLANG_VERSION_RANGE="2.068-" +DLANG_PACKAGE_TYPE="multi" + +inherit eutils dlang + +DEPEND="app-arch/unzip" +RDEPEND=" + >=x11-libs/gtk+-3.22:3[${MULTILIB_USEDEP}] + sourceview? ( >=x11-libs/gtksourceview-3.24:3.0 ) + gstreamer? ( >=media-libs/gstreamer-1.12:1.0 ) + vte? ( >=x11-libs/vte-0.48:2.91 ) + peas? ( >=dev-libs/libpeas-1.20 ) +" + +GTKD_USE_FLAGS=(gtk opengl sourceview gstreamer vte peas) +GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv gstreamerd vted peasd) +GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer vte peas) +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 + # The test phase expects no version extension on the .so + if dlang_has_shared_lib_support; then + dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so \ + lib${LIB_NAME}-${MAJOR}.so.0 -Isrc -Igenerated/gtkd generated/${SRC_DIR}/*/*.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} -Isrc -Igenerated/gtkd generated/${SRC_DIR}/*/*.d -lib ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a + elif [[ "${DLANG_VENDOR}" == "GNU" ]]; then + dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd generated/${SRC_DIR}/*/*.d -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} -Isrc -Igenerated/gtkd generated/${SRC_DIR}/*/*.d -lib -od=${SRC_DIR} -oq ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a + fi + fi + } + + foreach_used_component compile_libs +} + +d_src_test() { + emake LINKERFLAG="${DLANG_LINKER_FLAG}" output="${DLANG_OUTPUT_FLAG}\$@" test +} + +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" + ln -sf "${libfile}" "${libfile}.0" + ln -sf "${libfile}" "${libfile}.0.${MINOR}" + dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${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.md + + # Include files + insinto "${DLANG_IMPORT_DIR}/${PN}-${MAJOR}" + + install_headers() { + files="generated/${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 +} |