diff options
author | David Holm <dholm@gentoo.org> | 2003-11-16 10:55:20 +0000 |
---|---|---|
committer | David Holm <dholm@gentoo.org> | 2003-11-16 10:55:20 +0000 |
commit | acc2523a1a4fbd38cc401e2d12be0751b2a13030 (patch) | |
tree | e4aa059c754edca26cf83ed69b4982a57510f714 /dev-ada/xmlada | |
parent | New version of XmlAda (diff) | |
download | gentoo-2-acc2523a1a4fbd38cc401e2d12be0751b2a13030.tar.gz gentoo-2-acc2523a1a4fbd38cc401e2d12be0751b2a13030.tar.bz2 gentoo-2-acc2523a1a4fbd38cc401e2d12be0751b2a13030.zip |
New version of XmlAda
Diffstat (limited to 'dev-ada/xmlada')
-rw-r--r-- | dev-ada/xmlada/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ada/xmlada/Manifest | 4 | ||||
-rw-r--r-- | dev-ada/xmlada/files/digest-xmlada-1.0 | 1 | ||||
-rw-r--r-- | dev-ada/xmlada/xmlada-1.0.ebuild | 96 |
4 files changed, 105 insertions, 3 deletions
diff --git a/dev-ada/xmlada/ChangeLog b/dev-ada/xmlada/ChangeLog index 06d8ec8487d5..ae5291879056 100644 --- a/dev-ada/xmlada/ChangeLog +++ b/dev-ada/xmlada/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ada/xmlada # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/ChangeLog,v 1.8 2003/10/28 13:28:13 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/ChangeLog,v 1.9 2003/11/16 10:55:13 dholm Exp $ + +*xmlada-1.0 (16 Nov 2003) + + 16 Nov 2003; David Holm <dholm@gentoo.org> xmlada-1.0.ebuild: + New version of XmlAda. 28 Oct 2003; David Holm <dholm@gentoo.org> xmlada-0.7.1-r2.ebuild: Added to ADA_INCLUDE_PATH and ADA_OBJECTS_PATH. diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest index 81b9df603200..9078fb44fd36 100644 --- a/dev-ada/xmlada/Manifest +++ b/dev-ada/xmlada/Manifest @@ -1,6 +1,6 @@ -MD5 21af081cc3db5b66e8c96a77ba8198e5 ChangeLog 1691 +MD5 a3f524342a424e0ee254fd5d21bad491 ChangeLog 1808 MD5 e1d1b17d24932d84db6122c279bf6008 metadata.xml 938 -MD5 0043424e53acdc27ead1d9f5979255a1 xmlada-1.0.ebuild 2683 +MD5 4e714aaa03eefc337281c39f09b8cebc xmlada-1.0.ebuild 2678 MD5 af85a1859d04b9b8b1c4f8d572f0d927 xmlada-0.7.1-r2.ebuild 2687 MD5 04741d70df78b3e33bea42b18423e457 files/digest-xmlada-1.0 59 MD5 9d2b99c18fffcb88c4d56d762a271e19 files/digest-xmlada-0.7.1-r2 61 diff --git a/dev-ada/xmlada/files/digest-xmlada-1.0 b/dev-ada/xmlada/files/digest-xmlada-1.0 new file mode 100644 index 000000000000..2a90e4bb1917 --- /dev/null +++ b/dev-ada/xmlada/files/digest-xmlada-1.0 @@ -0,0 +1 @@ +MD5 1f7a2b701dfe82ff09407e6a18540b77 XmlAda-1.0.tgz 322079 diff --git a/dev-ada/xmlada/xmlada-1.0.ebuild b/dev-ada/xmlada/xmlada-1.0.ebuild new file mode 100644 index 000000000000..261bd6062f66 --- /dev/null +++ b/dev-ada/xmlada/xmlada-1.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/xmlada-1.0.ebuild,v 1.1 2003/11/16 10:55:13 dholm Exp $ + +inherit gnat + +IUSE="" + +Name="XmlAda" + +DESCRIPTION="XML library for Ada" +HOMEPAGE="http://libre.act-europe.fr/xmlada/" +SRC_URI="http://libre.act-europe.fr/xmlada/${Name}-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +DEPEND=">=dev-lang/gnat-3.14p" +RDEPEND="" + + +src_unpack() +{ + unpack ${A} + 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 + + #adjust xmlada-config to use new paths instead of hardcoded ones. + cd ${S} + sed -i -e "s#${prefix}/lib#${prefix}/lib/ada/adalib/xmlada#" xmlada-config.in + sed -i -e "s#${prefix}/include/xmlada#${prefix}/lib/ada/adainclude/xmlada#" xmlada-config.in +} + +src_compile() +{ + 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" +} + +src_install () +{ + make PREFIX=${D}/usr install || die "install failed" + + #move components to GNAE compliant directories + dodir /usr/lib/ada/adalib/${PN} /usr/lib/ada/adainclude/${PN} + cd ${D}/usr/lib/ + mv * ${D}/usr/lib/ada/adalib/${PN}/ + cd ${D}/usr/include/${PN}/ + mv *.ali ${D}/usr/lib/ada/adalib/${PN} + mv * ${D}/usr/lib/ada/adainclude/${PN} + cd .. && rmdir ${PN} + cd .. && rmdir include + cd ${S} + + dodoc AUTHORS COPYING README docs/xml.ps + dohtml docs/*.html + doinfo docs/*.info + #need to give a proper name to info file + cd ${D}/usr/share/info + mv xml.info.gz ${PN}.info.gz + + dosym /usr/lib/ada/adalib/xmlada/libxmlada_dom.so /usr/lib + dosym /usr/lib/ada/adalib/xmlada/libxmlada_input_sources.so /usr/lib + dosym /usr/lib/ada/adalib/xmlada/libxmlada_sax.so /usr/lib + dosym /usr/lib/ada/adalib/xmlada/libxmlada_unicode.so /usr/lib + + #set up environment + dodir /etc/env.d + echo "ADA_OBJECTS_PATH=/usr/lib/ada/adalib/${PN}" \ + > ${D}/etc/env.d/55xmlada + echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${PN}" \ + >> ${D}/etc/env.d/55xmlada +} + +pkg_postinst() { + einfo "The envaironment 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" +} |