summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2007-05-27 18:25:01 +0000
committerGeorge Shapovalov <george@gentoo.org>2007-05-27 18:25:01 +0000
commit14172c3063e9c667648869eaa68b168d53d7cc99 (patch)
treee986bbc7e9b6db693e194220531f04936e97f3cb /dev-ada/gtkada
parentStable on x86 wrt bug #178693 (diff)
downloadgentoo-2-14172c3063e9c667648869eaa68b168d53d7cc99.tar.gz
gentoo-2-14172c3063e9c667648869eaa68b168d53d7cc99.tar.bz2
gentoo-2-14172c3063e9c667648869eaa68b168d53d7cc99.zip
new version
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-ada/gtkada')
-rw-r--r--dev-ada/gtkada/ChangeLog7
-rw-r--r--dev-ada/gtkada/files/digest-gtkada-2.8.03
-rw-r--r--dev-ada/gtkada/gtkada-2.8.0.ebuild111
3 files changed, 120 insertions, 1 deletions
diff --git a/dev-ada/gtkada/ChangeLog b/dev-ada/gtkada/ChangeLog
index e6351a186750..e2e6daf209f3 100644
--- a/dev-ada/gtkada/ChangeLog
+++ b/dev-ada/gtkada/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ada/gtkada
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/ChangeLog,v 1.21 2007/04/08 00:59:12 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/ChangeLog,v 1.22 2007/05/27 18:25:01 george Exp $
+
+*gtkada-2.8.0 (27 May 2007)
+
+ 27 May 2007; George Shapovalov <george@gentoo.org> +gtkada-2.8.0.ebuild:
+ new version
08 Apr 2007; Joseph Jezak <josejx@gentoo.org> gtkada-2.4.0-r2.ebuild:
Marked ~ppc for bug #172416.
diff --git a/dev-ada/gtkada/files/digest-gtkada-2.8.0 b/dev-ada/gtkada/files/digest-gtkada-2.8.0
new file mode 100644
index 000000000000..3905bfe176c4
--- /dev/null
+++ b/dev-ada/gtkada/files/digest-gtkada-2.8.0
@@ -0,0 +1,3 @@
+MD5 e8ae05f6c3122b0c17555741688d47ed GtkAda-gpl-2.8.0.tgz 2833063
+RMD160 cccd5ca43eb3814422ddca3677cc0d5e9ec86cab GtkAda-gpl-2.8.0.tgz 2833063
+SHA256 e1ab10d87f26daf7846ca4b1eefb8532f43a74b40348a2545b7046291b113fb0 GtkAda-gpl-2.8.0.tgz 2833063
diff --git a/dev-ada/gtkada/gtkada-2.8.0.ebuild b/dev-ada/gtkada/gtkada-2.8.0.ebuild
new file mode 100644
index 000000000000..cd8321a94571
--- /dev/null
+++ b/dev-ada/gtkada/gtkada-2.8.0.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/gtkada-2.8.0.ebuild,v 1.1 2007/05/27 18:25:01 george Exp $
+
+inherit eutils gnat
+
+Name="GtkAda-gpl"
+DESCRIPTION="Gtk+ bindings to the Ada language"
+HOMEPAGE="https://libre2.adacore.com/GtkAda/"
+SRC_URI="http://dev.gentoo.org/~george/src/${Name}-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls opengl"
+
+DEPEND="virtual/gnat
+ >=dev-libs/glib-2.8.0
+ >=x11-libs/pango-1.10.0
+ >=dev-libs/atk-1.10.0
+ >=x11-libs/gtk+-2.8.13
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+S="${WORKDIR}/${Name}-${PV}"
+
+
+# only needed for gcc-3.x based gnat profiles, but matching them individually
+# would be insane
+QA_EXECSTACK="${AdalibLibTop:1}/*/gtkada/libgtkada-2.8.so.0"
+
+# a location to temporarily keep common stuff installed by make install
+CommonInst="${WORKDIR}/common-install"
+
+src_unpack() {
+ gnat_src_unpack
+
+ cd ${S}
+ sed -i -e "s:-aI\$prefix/include/gtkada:-aI${AdalibSpecsDir}/gtkada:" \
+ src/gtkada-config.in
+
+ # disable building tests to avoid waisting time while building for every
+ # profile. The tests are nonetheless installed under doc dir.
+ sed -i -e "/testgtk_dir/d" Makefile.in
+
+ # remove lib stripping
+ sed -i -e "/strip/d" src/Makefile.in
+}
+
+lib_compile() {
+ # some profile specific fixes first
+ sed -i -e "s:\$prefix/lib\(/gtkada\)*:${AdalibLibTop}/$1/gtkada:" \
+ src/gtkada-config.in
+
+ local myconf
+ use opengl && myconf="--with-GL=auto" || myconf="--with-GL=no"
+
+ econf ${myconf} $(use_enable nls) || die "./configure failed"
+
+ make GNATFLAGS="${ADACFLAGS}" || die
+}
+
+lib_install() {
+ # make install misses all the .so and .a files and otherwise creates more
+ # problems than it's worth. Will do everything manually
+ mkdir -p ${DL}
+ cp src/*.ali src/gtkada-config ${DL}
+ find -iname "*.a" -exec mv {} ${DL} \;
+ find -iname "*.so*" -exec mv {} ${DL} \;
+}
+
+src_install() {
+ #set up environment
+ echo "PATH=%DL%" > ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ cd ${S}
+ #specs
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins src/*.ad?
+
+ #docs
+ dodoc ANNOUNCE AUTHORS COPYING README
+ cp -dPr examples/ testgtk/ "${D}/usr/share/doc/${PF}"
+ cd docs
+ ps2pdf gtkada_ug/gtkada_ug.ps
+ ps2pdf gtkada_rm/gtkada_rm.ps
+ cp gtkada_ug.pdf gtkada_rm.pdf "${D}/usr/share/doc/${PF}"
+ dohtml -r gtkada_ug/{gtkada_ug.html,boxes.gif,hierarchy.jpg}
+ cp -dPr gtkada_rm/gtkada_rm/ "${D}/usr/share/doc/${PF}/html"
+
+ # utility stuff
+ cd ${S}
+ dodir "${AdalibDataDir}/${PN}"
+ insinto "${AdalibDataDir}/${PN}"
+ doins -r xml/gtkada.xml projects/
+}
+
+pkg_postinst() {
+ eselect gnat update
+ einfo "The environment has been set up to make gnat automatically find files for"
+ einfo "GtkAda. In order to immediately activate these settings please do:"
+ einfo " env-update && source /etc/profile"
+ einfo "Otherwise the settings will become active next time you login"
+}
+