aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2013-11-18 13:08:39 +0100
committerMarco Leise <marco.leise@gmx.de>2013-11-18 13:08:39 +0100
commitf490867b5072c6c77afbcce87330bdbe9ea14ab5 (patch)
treea1209a04789f1d7094ccc09c77873ffce1469e55 /dev-libs
downloaddlang-f490867b5072c6c77afbcce87330bdbe9ea14ab5.tar.gz
dlang-f490867b5072c6c77afbcce87330bdbe9ea14ab5.tar.bz2
dlang-f490867b5072c6c77afbcce87330bdbe9ea14ab5.zip
Initial commit with DMD, GDC, LDC and GtkD
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/GtkD/GtkD-2.3.0.ebuild69
-rw-r--r--dev-libs/GtkD/Manifest3
-rw-r--r--dev-libs/GtkD/files/2.3.0-makefile.patch127
3 files changed, 199 insertions, 0 deletions
diff --git a/dev-libs/GtkD/GtkD-2.3.0.ebuild b/dev-libs/GtkD/GtkD-2.3.0.ebuild
new file mode 100644
index 0000000..2274302
--- /dev/null
+++ b/dev-libs/GtkD/GtkD-2.3.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="D binding and OO wrapper of GTK+ and is released on the LGPL license"
+HOMEPAGE="http://gtkd.org/"
+
+SLOT="0"
+KEYWORDS="x86 amd64"
+DEPEND="app-arch/unzip"
+RDEPEND="x11-libs/gtk+:3"
+
+SRC_URI="http://master.dl.sourceforge.net/project/gtkd-packages/sources/${P}.zip"
+
+DLANG_VERSION_RANGE="2.063-"
+
+inherit eutils dlang
+
+GTKD_COMP_FLAGS=(opengl sourceview libgda gstreamer vte)
+GTKD_COMP_NAMES=(gtkdgl sv gda gstreamer vte)
+IUSE="${GTKD_COMP_FLAGS[@]} static-libs"
+
+flags_to_comps() {
+ comps=("${1}gtkd")
+ for (( i = 0 ; i < ${#GTKD_COMP_FLAGS[@]} ; i++ )); do
+ use ${GTKD_COMP_FLAGS[$i]} && comps+=("${1}${GTKD_COMP_NAMES[$i]}")
+ done
+ echo ${comps[@]}
+}
+
+src_unpack() {
+ unzip -q ${DISTDIR}/${A} -d ${S}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-makefile.patch"
+ dlang_copy_sources
+}
+
+d_src_compile() {
+ local components=()
+ if dlang_has_shared_lib_support; then
+ components+=($(flags_to_comps shared-))
+ else
+ ewarn "${DLANG_VENDOR} version ${DC_VERSION} does not have shared library support."
+ ewarn "Only static libraries will be compiled if selected through the static-libs USE flag."
+ fi
+ if use static-libs; then
+ components+=($(flags_to_comps))
+ fi
+ if [[ ${#components[@]} -ne 0 ]]; then
+ emake ${components}
+ fi
+}
+
+d_src_install() {
+ if dlang_has_shared_lib_support; then
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)/dlang/dmd-2.064" $(flags_to_comps "install-shared-")
+ fi
+ if use static-libs; then
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)/dlang/dmd-2.064" $(flags_to_comps "install-")
+ fi
+}
+
+src_install_all() {
+ emake DESTDIR="${D}" $(flags_to_comps "install-headers-")
+ dodoc AUTHORS README COPYING
+} \ No newline at end of file
diff --git a/dev-libs/GtkD/Manifest b/dev-libs/GtkD/Manifest
new file mode 100644
index 0000000..3aaa1e3
--- /dev/null
+++ b/dev-libs/GtkD/Manifest
@@ -0,0 +1,3 @@
+AUX 2.3.0-makefile.patch 6108 SHA256 237639d61dd485a64aa405c7bd69fabb58e115b0317abfecd5e2678054c13c7d SHA512 782f2886bfb7082dab5902b8d94ade328133efd33b98f05e42a8002705f0c5d1b9a8f0d14dd87417df5f77fe8e9dcb3365977fa7e2329b3542a0e3d3fdbab778 WHIRLPOOL 9d2dadba73cda4508f01b22f7be1df6dd1cae7360a5367af964cdb9b303d2b3f7ce850e1b53d8a5c778dd458c94165b6f6aa9f229bda258fffbbdc8c80eb65f6
+DIST GtkD-2.3.0.zip 4188101 SHA256 2d7248b0fd482be70ca0400f6e82bd2e0189107e58242bee3cf8023bad0c1f88 SHA512 b37b80b5a72b5e4355f85b40e08b6617a19fbe1d1a6e87d30ee9c78af5f8afabf599e09c998581521bea14f1c50a35eedaeee958ac88a754cb1e40f544ead7d9 WHIRLPOOL 838306bdbc9e8a45f0823fdf381ac9990ef294df9e6229769b9bc8d9cea95c918079be13d44944e49a88199a90494c287343d5648ec75788a734d3c9cd685f74
+EBUILD GtkD-2.3.0.ebuild 1763 SHA256 c15126e8eda1c1e704c3236146e56e8983f77b666c78b9fded403ec7166271ef SHA512 a1c0ff3e27c3392b9ec47c55baaebc5aaf9a53a7b7deb6c02a991a3a826fc720678459387cce17f2d40b3652b02a3a2fdb87de3742c88372a283e6d10dd3f557 WHIRLPOOL e95948c6666e0694a062a2a1fa8f2c6577e500d3874b8b43d78d56e08fe8eb6ec17215c0a2efcb4de70d61a4137bf005642e2d42792fffc59a795a927982373e
diff --git a/dev-libs/GtkD/files/2.3.0-makefile.patch b/dev-libs/GtkD/files/2.3.0-makefile.patch
new file mode 100644
index 0000000..f2805b9
--- /dev/null
+++ b/dev-libs/GtkD/files/2.3.0-makefile.patch
@@ -0,0 +1,127 @@
+--- GNUmakefile
++++ GNUmakefile
+@@ -1,6 +1,5 @@
+ SHELL=/bin/sh
+-prefix=/usr/local
+-libdir=lib
++prefix=/usr
+ datadir=$(prefix)/share
+
+ OS=$(shell uname || uname -s)
+@@ -26,14 +25,12 @@
+
+ all: libs shared-libs gda gstreamer vte shared-gda shared-gstreamer shared-vte test
+
+-ifeq ("$(DC)","gdc")
+- DCFLAGS=-O2
++ifeq ("$(DLANG_VENDOR)","gdc")
+ LINKERFLAG=-Xlinker
+ DDOCFLAGS=-fsyntax-only -c -fdoc -fdoc-file=$@
+ DDOCINC=-fdoc-inc=
+ output=-o $@
+ else
+- DCFLAGS=-O
+ LINKERFLAG=-L
+ DDOCFLAGS=-o- -Df$@
+ output=-of$@
+@@ -246,8 +243,8 @@
+ echo Name: GtkD > $@
+ echo Description: A D binding and OO wrapper for GTK+. >> $@
+ echo Version: $(GTKD_VERSION) >> $@
+- echo Libs: $(LINKERFLAG)-L$(prefix)/lib/ $(LINKERFLAG)-lgtkd-$(MAJOR) $(LINKERFLAG)-ldl >> $@
+- echo Cflags: -I$(prefix)/include/d/gtkd-$(MAJOR)/ >> $@
++ echo Libs: $(LINKERFLAG)-lgtkd-$(MAJOR) $(LINKERFLAG)-ldl >> $@
++ echo Cflags: -I$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR)/ >> $@
+
+ gtkdgl-$(MAJOR).pc:
+ echo Name: GtkDGL > $@
+@@ -297,26 +294,26 @@
+ endif
+
+ install-gtkd: $(LIBNAME_GTKD) install-headers-gtkd
+- install -d $(DESTDIR)$(prefix)/$(libdir)
+- install -m 644 $(LIBNAME_GTKD) $(DESTDIR)$(prefix)/$(libdir)
++ install -d $(DESTDIR)$(DLANG_LIB_DIR)
++ install -m 644 $(LIBNAME_GTKD) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-gtkdgl: $(LIBNAME_GTKDGL) install-gtkd install-headers-gtkdgl
+- install -m 644 $(LIBNAME_GTKDGL) $(DESTDIR)$(prefix)/$(libdir)
++ install -m 644 $(LIBNAME_GTKDGL) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-gtkdsv: $(LIBNAME_GTKDSV) install-gtkd install-headers-gtkdsv
+- install -m 644 $(LIBNAME_GTKDSV) $(DESTDIR)$(prefix)/$(libdir)
++ install -m 644 $(LIBNAME_GTKDSV) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-gda: $(LIBNAME_GTKDGDA) install-gtkd install-headers-gda
+- install -m 644 $(LIBNAME_GTKDGDA) $(DESTDIR)$(prefix)/$(libdir)
++ install -m 644 $(LIBNAME_GTKDGDA) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-gstreamer: $(LIBNAME_GSTREAMERD) install-gtkd install-headers-gstreamer
+- install -m 644 $(LIBNAME_GSTREAMERD) $(DESTDIR)$(prefix)/$(libdir)
++ install -m 644 $(LIBNAME_GSTREAMERD) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-vte: $(LIBNAME_VTED) install-gtkd install-headers-vte
+- install -m 644 $(LIBNAME_VTED) $(DESTDIR)$(prefix)/$(libdir)
++ install -m 644 $(LIBNAME_VTED) $(DESTDIR)$(DLANG_LIB_DIR)
+
+ install-shared-gtkd: $(SONAME_GTKD)
+- install -d $(DESTDIR)$(prefix)/$(libdir)
++ install -d $(DESTDIR)$(DLANG_LIB_DIR)
+ $(install-so)
+
+ install-shared-gtkdgl: $(SONAME_GTKDGL) install-shared-gtkd
+@@ -335,29 +332,29 @@
+ $(install-so)
+
+ install-headers-gtkd: gtkd-$(MAJOR).pc
+- install -d $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR)
++ install -d $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR)
+ install -d $(DESTDIR)$(datadir)/pkgconfig
+- (cd src; echo $(SOURCES_GTKD) | sed -e s,src/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd src; echo $(SOURCES_GTKD) | sed -e s,src/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 gtkd-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ install-headers-gtkdgl: gtkdgl-$(MAJOR).pc install-headers-gtkd
+- (cd srcgl; echo $(SOURCES_GTKDGL) | sed -e s,srcgl/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd srcgl; echo $(SOURCES_GTKDGL) | sed -e s,srcgl/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 gtkdgl-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ install-headers-gtkdsv: gtkdsv-$(MAJOR).pc install-headers-gtkd
+- (cd srcsv; echo $(SOURCES_GTKDSV) | sed -e s,srcsv/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd srcsv; echo $(SOURCES_GTKDSV) | sed -e s,srcsv/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 gtkdsv-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ install-headers-gda: gtkdgda-$(MAJOR).pc install-headers-gtkd
+- (cd srcgda; echo $(SOURCES_GTKDGDA) | sed -e s,srcgda/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd srcgda; echo $(SOURCES_GTKDGDA) | sed -e s,srcgda/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 gtkdgda-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ install-headers-gstreamer: gstreamerd-$(MAJOR).pc install-headers-gtkd
+- (cd srcgstreamer; echo $(SOURCES_GSTREAMERD) | sed -e s,srcgstreamer/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd srcgstreamer; echo $(SOURCES_GSTREAMERD) | sed -e s,srcgstreamer/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 gstreamerd-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ install-headers-vte: vted-$(MAJOR).pc install-headers-gtkd
+- (cd srcvte; echo $(SOURCES_VTED) | sed -e s,srcvte/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d/gtkd-$(MAJOR); tar xv)
++ (cd srcvte; echo $(SOURCES_VTED) | sed -e s,srcvte/,,g | xargs tar cf -) | (cd $(DESTDIR)$(DLANG_IMPORT_DIR)/gtkd-$(MAJOR); tar xv)
+ install -m 644 vted-$(MAJOR).pc $(DESTDIR)$(datadir)/pkgconfig
+
+ uninstall: uninstall-gtkdgl uninstall-gtkdsv uninstall-gda uninstall-gstreamer
+@@ -426,13 +423,13 @@
+
+ define make-shared-lib
+ #Remove this line when phobos #1280 is merged.
+- $(if $(findstring "dmd","$(DC)"),$(eval LDFLAGS+=-defaultlib=:libphobos2.so))
++ $(if $(findstring "dmd","$(DLANG_VENDOR)"),$(eval LDFLAGS+=-defaultlib=:libphobos2.so))
+
+ $(DC) -shared $(output) $(LDFLAGS) $(LINKERFLAG)-soname=$@.$(SO_VERSION) $^
+ endef
+
+ define install-so
+- install -m 755 $< $(DESTDIR)$(prefix)/$(libdir)/$<.$(SO_VERSION).$(MINOR).$(BUGFIX)
+- cd $(DESTDIR)$(prefix)/$(libdir)/; ln -s $<.$(SO_VERSION).$(MINOR).$(BUGFIX) $<.$(SO_VERSION)
+- cd $(DESTDIR)$(prefix)/$(libdir)/; ln -s $<.$(SO_VERSION) $<
++ install -m 755 $< $(DESTDIR)$(DLANG_LIB_DIR)/$<.$(SO_VERSION).$(MINOR).$(BUGFIX)
++ cd $(DESTDIR)$(DLANG_LIB_DIR)/; ln -s $<.$(SO_VERSION).$(MINOR).$(BUGFIX) $<.$(SO_VERSION)
++ cd $(DESTDIR)$(DLANG_LIB_DIR)/; ln -s $<.$(SO_VERSION) $<
+ endef