diff options
Diffstat (limited to 'dev-ada/gtkada')
-rw-r--r-- | dev-ada/gtkada/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ada/gtkada/files/digest-gtkada-2.4.0 | 2 | ||||
-rw-r--r-- | dev-ada/gtkada/files/digest-gtkada-2.4.0-r1 | 3 | ||||
-rw-r--r-- | dev-ada/gtkada/files/gtkada-2.4.0.patch | 11 | ||||
-rw-r--r-- | dev-ada/gtkada/gtkada-2.4.0-r1.ebuild | 110 |
5 files changed, 133 insertions, 1 deletions
diff --git a/dev-ada/gtkada/ChangeLog b/dev-ada/gtkada/ChangeLog index bbf0270b26d9..c20f7ef905f5 100644 --- a/dev-ada/gtkada/ChangeLog +++ b/dev-ada/gtkada/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ada/gtkada # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/ChangeLog,v 1.15 2006/05/13 21:01:51 george Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/ChangeLog,v 1.16 2006/05/25 17:32:38 george Exp $ + +*gtkada-2.4.0-r1 (25 May 2006) + + 25 May 2006; George Shapovalov <george@gentoo.org> + +files/gtkada-2.4.0.patch, +gtkada-2.4.0-r1.ebuild: + moved gtkada to new eclass, first release suppporting split compilers. 13 May 2006; George Shapovalov <george@gentoo.org> gtkada-2.2.0-r1.ebuild, gtkada-2.2.1.ebuild, gtkada-2.2.1-r1.ebuild, gtkada-2.4.0.ebuild: diff --git a/dev-ada/gtkada/files/digest-gtkada-2.4.0 b/dev-ada/gtkada/files/digest-gtkada-2.4.0 index 0afca8eea816..2ead661b975f 100644 --- a/dev-ada/gtkada/files/digest-gtkada-2.4.0 +++ b/dev-ada/gtkada/files/digest-gtkada-2.4.0 @@ -1 +1,3 @@ MD5 31232d695ca40c3fb346fb34bc93ed3d GtkAda-2.4.0.tgz 3235169 +RMD160 ca632c4f4d67ac02cd2a872a9c144fdc79956623 GtkAda-2.4.0.tgz 3235169 +SHA256 1c80eaa850eb87101188ea4d5145b7a8093b99ff99466c1f9f17a737828cd43e GtkAda-2.4.0.tgz 3235169 diff --git a/dev-ada/gtkada/files/digest-gtkada-2.4.0-r1 b/dev-ada/gtkada/files/digest-gtkada-2.4.0-r1 new file mode 100644 index 000000000000..2ead661b975f --- /dev/null +++ b/dev-ada/gtkada/files/digest-gtkada-2.4.0-r1 @@ -0,0 +1,3 @@ +MD5 31232d695ca40c3fb346fb34bc93ed3d GtkAda-2.4.0.tgz 3235169 +RMD160 ca632c4f4d67ac02cd2a872a9c144fdc79956623 GtkAda-2.4.0.tgz 3235169 +SHA256 1c80eaa850eb87101188ea4d5145b7a8093b99ff99466c1f9f17a737828cd43e GtkAda-2.4.0.tgz 3235169 diff --git a/dev-ada/gtkada/files/gtkada-2.4.0.patch b/dev-ada/gtkada/files/gtkada-2.4.0.patch new file mode 100644 index 000000000000..063507f4a09b --- /dev/null +++ b/dev-ada/gtkada/files/gtkada-2.4.0.patch @@ -0,0 +1,11 @@ +diff -ru GtkAda-2.4.0-orig/src/gtkada-mdi.adb GtkAda-2.4.0/src/gtkada-mdi.adb +--- GtkAda-2.4.0-orig/src/gtkada-mdi.adb 2004-11-09 09:35:57.000000000 +0100 ++++ GtkAda-2.4.0/src/gtkada-mdi.adb 2006-05-18 23:15:13.917488750 +0200 +@@ -4778,6 +4778,7 @@ + when Top | Bottom => + Widths (Side) := 0; + Heights (Side) := Get_Allocation_Height (MDI.Docks (Side)); ++ when None => Null; + end case; + + -- If not allocated yet diff --git a/dev-ada/gtkada/gtkada-2.4.0-r1.ebuild b/dev-ada/gtkada/gtkada-2.4.0-r1.ebuild new file mode 100644 index 000000000000..2de4800afcda --- /dev/null +++ b/dev-ada/gtkada/gtkada-2.4.0-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/gtkada-2.4.0-r1.ebuild,v 1.1 2006/05/25 17:32:38 george Exp $ + +inherit eutils gnat + +Name="GtkAda" +DESCRIPTION="Gtk+ bindings to the Ada language" +HOMEPAGE="https://libre2.adacore.com/GtkAda/" +SRC_URI="https://libre2.adacore.com/${Name}/${Name}-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="nls opengl" + +DEPEND="virtual/gnat + >=x11-libs/gtk+-2.2.0 + >=sys-apps/sed-4" +RDEPEND="" + +S="${WORKDIR}/${Name}-${PV}" + +# 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|-I\$prefix/include|-I${AdalibSpecsDir}|" \ + src/gtkada-config.in + +} + +lib_compile() { + # some profile specific fixes first + sed -i -e "s|-L\$prefix/include|-L${AdalibLibTop}/$1|" \ + src/gtkada-config.in + + # ATTN! Check if this is fixed when new version comes out! + # this one fails on 4.1 without and 3.4 with.. + if [[ $(get_gnat_SLOT $1) > 3.4 ]] ; then + epatch ${FILESDIR}/${P}.patch + fi + + # gtkada does not like to see itself installed.. +# export ADA_INCLUDE_PATH=$(filter_env_var ADA_INCLUDE_PATH) +# export ADA_OBJECTS_PATH=$(filter_env_var ADA_OBJECTS_PATH) + einfo "ADA_INCLUDE_PATH=${ADA_INCLUDE_PATH}" + + 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 prefix=${DL} \ + incdir=${DL}/adainclude \ + libdir=${DL}/adalib \ + alidir=${DL}/adalib \ + install || die + + #set up environment + echo "PATH=%DL%/bin" > ${LibEnv} + echo "ADA_OBJECTS_PATH=%DL%/adalib" >> ${LibEnv} + echo "ADA_INCLUDE_PATH=%DL%/adainclude:/usr/lib/ada/adainclude/${PN}" >> ${LibEnv} + + # move common stuff out of $DL + if [[ -d "${CommonInst}" ]] ; then + # we need only one copy, its all identical + mv "${DL}"/adainclude/gtkada-mdi.adb "${DL}" + rm -rf "${DL}"/{adainclude/*,doc,projects,share} + mv "${DL}"/gtkada-mdi.adb "${DL}"/adainclude/ + else + mkdir "${CommonInst}" + mv ${DL}/{adainclude,doc,projects,share} "${CommonInst}" + # one .adb file has profile-specific fixes.. + mkdir "${DL}"/adainclude + mv "${CommonInst}"/adainclude/gtkada-mdi.adb "${DL}"/adainclude/ + fi +} + +src_install() { + gnat_src_install + + #specs + cd "${CommonInst}" + dodir "${AdalibSpecsDir}/${PN}" + insinto "${AdalibSpecsDir}/${PN}" + doins "${CommonInst}"/adainclude/* + + #docs + cd ${S} + dodoc ANNOUNCE AUTHORS COPYING README + cd "${CommonInst}" + cp -dPr doc/${Name}/* share/${PN}/examples/ "${D}/usr/share/doc/${PF}" +} + +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" +} + |