summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-05-16 21:28:39 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-05-16 21:28:39 +0000
commit57fceb422be9f91a75f22345e2c025dd3c1facdb (patch)
tree39a3fe0f330b56b6c11e3122c9e2053745daab2d
parentadded eutils to inherit (diff)
downloadgentoo-2-57fceb422be9f91a75f22345e2c025dd3c1facdb.tar.gz
gentoo-2-57fceb422be9f91a75f22345e2c025dd3c1facdb.tar.bz2
gentoo-2-57fceb422be9f91a75f22345e2c025dd3c1facdb.zip
fixed broken Makefile logic (#111340) - shared libs are now installed under proper names and symlinked as they should. Revbump, as this is affects the result.
(Portage version: 2.1_rc1-r2)
-rw-r--r--dev-ada/xmlada/ChangeLog8
-rw-r--r--dev-ada/xmlada/files/digest-xmlada-1.0-r23
-rw-r--r--dev-ada/xmlada/xmlada-1.0-r2.ebuild106
3 files changed, 116 insertions, 1 deletions
diff --git a/dev-ada/xmlada/ChangeLog b/dev-ada/xmlada/ChangeLog
index d8d3d3826f1b..1d55ecec836f 100644
--- a/dev-ada/xmlada/ChangeLog
+++ b/dev-ada/xmlada/ChangeLog
@@ -1,6 +1,12 @@
# 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.15 2006/05/15 10:11:02 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/xmlada/ChangeLog,v 1.16 2006/05/16 21:28:39 george Exp $
+
+*xmlada-1.0-r2 (16 May 2006)
+
+ 16 May 2006; George Shapovalov <george@gentoo.org> +xmlada-1.0-r2.ebuild:
+ fixed broken Makefile logic (#111340) - shared libs are now installed under proper
+ names and symlinked as they should. Revbump, as this is affects the result.
*xmlada-1.0-r1 (15 May 2006)
diff --git a/dev-ada/xmlada/files/digest-xmlada-1.0-r2 b/dev-ada/xmlada/files/digest-xmlada-1.0-r2
new file mode 100644
index 000000000000..9fd54c6ed23c
--- /dev/null
+++ b/dev-ada/xmlada/files/digest-xmlada-1.0-r2
@@ -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-r2.ebuild b/dev-ada/xmlada/xmlada-1.0-r2.ebuild
new file mode 100644
index 000000000000..67d8703d879d
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-1.0-r2.ebuild
@@ -0,0 +1,106 @@
+# 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-r2.ebuild,v 1.1 2006/05/16 21:28:39 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 "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${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"
+}