diff options
author | George Shapovalov <george@gentoo.org> | 2006-06-12 15:17:58 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2006-06-12 15:17:58 +0000 |
commit | 76d113b25302c6710537d870d2442c31c869c4e9 (patch) | |
tree | cd134df1ea785c80df96edadaad48b043904a15c /dev-ada/xmlada | |
parent | marking stable sparc (diff) | |
download | historical-76d113b25302c6710537d870d2442c31c869c4e9.tar.gz historical-76d113b25302c6710537d870d2442c31c869c4e9.tar.bz2 historical-76d113b25302c6710537d870d2442c31c869c4e9.zip |
added LDPATH as per discussion in #111340
Package-Manager: portage-2.1
Diffstat (limited to 'dev-ada/xmlada')
-rw-r--r-- | dev-ada/xmlada/ChangeLog | 5 | ||||
-rw-r--r-- | dev-ada/xmlada/Manifest | 15 | ||||
-rw-r--r-- | dev-ada/xmlada/files/digest-xmlada-1.0-r4 | 3 | ||||
-rw-r--r-- | dev-ada/xmlada/xmlada-1.0-r4.ebuild | 107 |
4 files changed, 125 insertions, 5 deletions
diff --git a/dev-ada/xmlada/ChangeLog b/dev-ada/xmlada/ChangeLog index 64fc299b4c6b..e9dd0b5fab90 100644 --- a/dev-ada/xmlada/ChangeLog +++ b/dev-ada/xmlada/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-ada/xmlada # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/ChangeLog,v 1.19 2006/06/05 19:07:06 george Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/ChangeLog,v 1.20 2006/06/12 15:17:58 george Exp $ + + 12 Jun 2006; George Shapovalov <george@gentoo.org> +xmlada-1.0-r4.ebuild: + added LDPATH as per discussion in #111340 05 Jun 2006; George Shapovalov <george@gentoo.org> -xmlada-1.0-r4.ebuild: removed 1.0-r4, as LD_RUN_PATH are not to be used (#111340) diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest index d9d784bb3bd4..686bd53d5d2e 100644 --- a/dev-ada/xmlada/Manifest +++ b/dev-ada/xmlada/Manifest @@ -16,14 +16,18 @@ EBUILD xmlada-1.0-r3.ebuild 3022 RMD160 02d3c2b85f13f865bba96819745f69a568355a0c MD5 4043299e537aa26e438ccd1fa462f215 xmlada-1.0-r3.ebuild 3022 RMD160 02d3c2b85f13f865bba96819745f69a568355a0c xmlada-1.0-r3.ebuild 3022 SHA256 7227ccce4c0baefd23c6f93850a1457db06ec868a3760c3ae99f4459ced5bb8e xmlada-1.0-r3.ebuild 3022 +EBUILD xmlada-1.0-r4.ebuild 3061 RMD160 deead6e8e2d13e5a4dd3860e3b5585d3c0d23e83 SHA1 cef16ed0db095568c5065afad31512b167f34c0c SHA256 dd261b263b92ddc3ecd46030793a5ebb520f02d0235d3b5b8dd99112dd0ac22d +MD5 8426cbba03f7b0b10bcd46ee42696ae1 xmlada-1.0-r4.ebuild 3061 +RMD160 deead6e8e2d13e5a4dd3860e3b5585d3c0d23e83 xmlada-1.0-r4.ebuild 3061 +SHA256 dd261b263b92ddc3ecd46030793a5ebb520f02d0235d3b5b8dd99112dd0ac22d xmlada-1.0-r4.ebuild 3061 EBUILD xmlada-1.0.ebuild 2674 RMD160 3e0ed594fdcb1e8fbfe65441e730461d94d24830 SHA1 8da938d6ca423ae746bac3dc54e9a5632c938339 SHA256 5e7466137ae63047ae21ff0909badd4cfd04a59c11c8243e5826415c7d4b8a53 MD5 410d5cb08015d40bd22d102c82653e7c xmlada-1.0.ebuild 2674 RMD160 3e0ed594fdcb1e8fbfe65441e730461d94d24830 xmlada-1.0.ebuild 2674 SHA256 5e7466137ae63047ae21ff0909badd4cfd04a59c11c8243e5826415c7d4b8a53 xmlada-1.0.ebuild 2674 -MISC ChangeLog 3107 RMD160 7f1d0e70787f0acb6dd544559145bb5988ef61da SHA1 0a5a43aaa3546206e6894ce5d79488023cd980b5 SHA256 e0a1882f24d6c23f0ef69b67f3276264fef30c92a318a1651a7c618ee1541e7f -MD5 472a672fb0588ddc382f4515b67d0b88 ChangeLog 3107 -RMD160 7f1d0e70787f0acb6dd544559145bb5988ef61da ChangeLog 3107 -SHA256 e0a1882f24d6c23f0ef69b67f3276264fef30c92a318a1651a7c618ee1541e7f ChangeLog 3107 +MISC ChangeLog 3228 RMD160 fa85c4e5ba15bcc0154756a4511eed9bf9115ccc SHA1 8ef22b2384a3eb72d7f63bd923ec4e294fcb4430 SHA256 387048d31ecb0f2dbcb32750f1673e628b0b39ee3cdf64d43e92acfa3f5c110e +MD5 217845c600a56ffcea0d7dfb8252d94f ChangeLog 3228 +RMD160 fa85c4e5ba15bcc0154756a4511eed9bf9115ccc ChangeLog 3228 +SHA256 387048d31ecb0f2dbcb32750f1673e628b0b39ee3cdf64d43e92acfa3f5c110e ChangeLog 3228 MISC metadata.xml 938 RMD160 d56fe21a5d0e3476dea7db8c325618f6ec007502 SHA1 47efe6a2dbcf0f11b04f1bd9d144e018ace7579d SHA256 2f009a0f62b8fc89cc7188d5bedfcd8cea774d70456f69454ad2ec6cd544a377 MD5 e1d1b17d24932d84db6122c279bf6008 metadata.xml 938 RMD160 d56fe21a5d0e3476dea7db8c325618f6ec007502 metadata.xml 938 @@ -43,3 +47,6 @@ SHA256 69b9a39439d61373b44cd98d5a6766587e7b8591bdbe286fd567bcc7bc45a941 files/di MD5 299eeb6a952f9e3305b5fdde97edb62f files/digest-xmlada-1.0-r3 223 RMD160 fe8484ffc2ac0a6b85475820d0a5f0830ac6020a files/digest-xmlada-1.0-r3 223 SHA256 69b9a39439d61373b44cd98d5a6766587e7b8591bdbe286fd567bcc7bc45a941 files/digest-xmlada-1.0-r3 223 +MD5 299eeb6a952f9e3305b5fdde97edb62f files/digest-xmlada-1.0-r4 223 +RMD160 fe8484ffc2ac0a6b85475820d0a5f0830ac6020a files/digest-xmlada-1.0-r4 223 +SHA256 69b9a39439d61373b44cd98d5a6766587e7b8591bdbe286fd567bcc7bc45a941 files/digest-xmlada-1.0-r4 223 diff --git a/dev-ada/xmlada/files/digest-xmlada-1.0-r4 b/dev-ada/xmlada/files/digest-xmlada-1.0-r4 new file mode 100644 index 000000000000..9fd54c6ed23c --- /dev/null +++ b/dev-ada/xmlada/files/digest-xmlada-1.0-r4 @@ -0,0 +1,3 @@ +MD5 1f7a2b701dfe82ff09407e6a18540b77 XmlAda-1.0.tgz 322079 +RMD160 08e23274cab3786527dccbd18c7ae891e37240ba XmlAda-1.0.tgz 322079 +SHA256 e86ccd448574ff1ec2205f9bfbfa5812023dc4ce5d4b1c2e2c8b1ffbd29ce917 XmlAda-1.0.tgz 322079 diff --git a/dev-ada/xmlada/xmlada-1.0-r4.ebuild b/dev-ada/xmlada/xmlada-1.0-r4.ebuild new file mode 100644 index 000000000000..8d2eb76bf92f --- /dev/null +++ b/dev-ada/xmlada/xmlada-1.0-r4.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/xmlada-1.0-r4.ebuild,v 1.3 2006/06/12 15:17:58 george Exp $ + +inherit gnat versionator + +IUSE="" + +Name="XmlAda" + +DESCRIPTION="XML library for Ada" +HOMEPAGE="http://libre2.adacore.com/xmlada/" +SRC_URI="https://libre2.adacore.com/xmlada/${Name}-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +DEPEND="virtual/gnat + >=sys-apps/sed-4" +RDEPEND="" + + +src_unpack() +{ + gnat_src_unpack + + cd ${S} + #making .dvi docs is problemmatic. Skip that for now + sed -i -e "s/all: obj test docs/all: obj test/" Makefile.in + #increase stack size + cd sax + sed -i -e "s/Stack_Size : constant Natural := 64;/Stack_Size : constant Natural := 128;/" sax-readers.adb +} + +lib_compile() +{ + # for some reason shared libs are assigned version numbers from some + # pre-release (possibly when upstream stopped to care about them?) + local MAJOR=$(get_major_version) + local MINOR=$(get_version_component_range 2-) + # force building shared libs and fix broken shared lib versioning + sed -i -e "s:BUILD_SHARED=FALSE:BUILD_SHARED=TRUE:" \ + -e "s:libxmlada_\${@\:%_install=%}-\${MAJOR}.\${MINOR}.so:libxmlada_\${@\:%_inst=%}.so.${MAJOR}.${MINOR}:" \ + -e "s:libxmlada_\${@\:%_inst=%}-\${MAJOR}.\${MINOR}.so:libxmlada_\${@\:%_inst=%}.so.${MAJOR}.${MINOR}:" \ + -e "s:FPIC=:FPIC=-fPIC:" Makefile.in + + export CFLAGS=$ADACFLAGS + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --host=${CHOST} \ + --build=${CHOST} \ + --target=${CHOST} \ + --with-system-zlib || die + + export COMPILER=gnatmake + make || die "make failed" +} + +# here we need to use the $1 - passed gnat profile name +lib_install() { + make PREFIX=${DL} install || die "install failed" + + # fix xmlada-config hardsets locations + sed -i -e "s:\${prefix}/include/xmlada:${AdalibSpecsDir}/${PN}:" \ + -e "s:\${prefix}/lib:${AdalibLibTop}/$1/${PN}:g" \ + ${DL}/bin/xmlada-config + + # now move stuff to proper location and delete extras + mv ${DL}/bin/xmlada-config ${DL}/lib/* ${DL}/include/${PN}/*.ali ${DL} + rm -rf ${DL}/bin ${DL}/include ${DL}/lib +} + +src_install () +{ + cd ${S} + dodir ${AdalibSpecsDir}/${PN} + insinto ${AdalibSpecsDir}/${PN} + doins dom/*.ad? input_sources/*.ad? sax/*.ad? unicode/*.ad? + + #set up environment + echo "PATH=%DL%" > ${LibEnv} + echo "LDPATH=%DL%" >> ${LibEnv} + echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv} + echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv} + + gnat_src_install + + dodoc AUTHORS COPYING README docs/xml.ps + dohtml docs/*.html + doinfo docs/*.info + #need to give a proper name to the info file + cd ${D}/usr/share/info + mv xml.info.gz ${PN}.info.gz + +} + +pkg_postinst() { + eselect gnat update + einfo "The environment has been set up to make gnat automatically find files for" + einfo "XmlAda. In order to immediately activate these settings please do:" + einfo "env-update" + einfo "source /etc/profile" + einfo "Otherwise the settings will become active next time you login" +} |