diff options
author | George Shapovalov <george@gentoo.org> | 2007-05-28 07:18:23 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2007-05-28 07:18:23 +0000 |
commit | fd14c19c1f0ae80520d0177f1dd07be0c7a2d9e8 (patch) | |
tree | 5481c7bd2ee9fec0ff967fef6856f3c392e5ae70 /dev-ada/gtkada/gtkada-2.10.0.ebuild | |
parent | masked gtkada-2.10 as it needs newer pango (diff) | |
download | gentoo-2-fd14c19c1f0ae80520d0177f1dd07be0c7a2d9e8.tar.gz gentoo-2-fd14c19c1f0ae80520d0177f1dd07be0c7a2d9e8.tar.bz2 gentoo-2-fd14c19c1f0ae80520d0177f1dd07be0c7a2d9e8.zip |
added new version
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-ada/gtkada/gtkada-2.10.0.ebuild')
-rw-r--r-- | dev-ada/gtkada/gtkada-2.10.0.ebuild | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/dev-ada/gtkada/gtkada-2.10.0.ebuild b/dev-ada/gtkada/gtkada-2.10.0.ebuild new file mode 100644 index 000000000000..f39d73c9c3d1 --- /dev/null +++ b/dev-ada/gtkada/gtkada-2.10.0.ebuild @@ -0,0 +1,113 @@ +# 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.10.0.ebuild,v 1.1 2007/05/28 07:18:23 george Exp $ + +inherit eutils gnat versionator + +Name="GtkAda-gpl" +MajorPV=$(get_version_component_range 1-2) +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 ~ppc" +IUSE="nls opengl" + +DEPEND="virtual/gnat + >=x11-libs/cairo-1.2.6 + >=dev-libs/glib-2.12.4 + >=x11-libs/pango-1.14.9 + >=dev-libs/atk-1.12.1 + >=x11-libs/gtk+-2.10.9 + >=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-${MajorPV}.so.0" + +src_unpack() { + gnat_src_unpack + + cd ${S} + sed -i -e "s:-aI\$prefix/include/gtkada:-aI${AdalibSpecsDir}/gtkada:" \ + src/tools/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 "s: strip \$(LIBNAME)::" src/Makefile.common.in +} + +lib_compile() { + # some profile specific fixes first + sed -i -e "s:\$prefix/lib\(/gtkada\)*:${AdalibLibTop}/$1/gtkada:" \ + src/tools/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} + mv src/lib-obj/* src/*/obj/* src/tools/gtkada-config ${DL} + rm ${DL}/*.o + chmod 0444 ${DL}/*.ali + chmod 0755 ${DL}/gtkada-config +} + +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 + + #specs + cd ${S}/src + dodir "${AdalibSpecsDir}/${PN}" + insinto "${AdalibSpecsDir}/${PN}" + doins *.ad? glade/*.ad? gnome/*.ad? opengl/*.{ad?,c,h} + + #docs + cd ${S} + dodoc ANNOUNCE AUTHORS COPYING README + cp -dPr examples/ testgtk/ "${D}/usr/share/doc/${PF}" + cd ${S}/docs + doinfo gtkada_ug/gtkada_ug.info + 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" +} + |