summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRod Kay2016-06-05 14:17:11 +1000
committerRod Kay2016-06-05 14:17:11 +1000
commit01517b5c18e5fe87f8413b8083494e1226347248 (patch)
treed6e1be7842cc27700c9e282e05fea59f8301b7d7
parenta490944a7dbb242bbed7be31f599e7c20f5dd857 (diff)
downloadaur-01517b5c18e5fe87f8413b8083494e1226347248.tar.gz
Update to 2016 version.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD246
2 files changed, 11 insertions, 249 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fe01b50c23d..cbb9a52dc4f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,16 @@
+# Generated by mksrcinfo v8
+# Sun Jun 5 04:16:17 UTC 2016
pkgbase = xmlada
pkgdesc = A full XML suite for Ada
- pkgver = 2015
+ pkgver = 2016
pkgrel = 1
url = http://libre.adacore.com/libre/tools/xmlada/
arch = i686
arch = x86_64
license = GPL
depends = gcc-ada
- source = http://mirrors.cdn.adacore.com/art/949752df2432aed8d06c48d57cea71f38d0517cc
- source = Makefile.archy
- source = generic_gpr.in
- source = patch-xmlada-config.in
- md5sums = 98c96b8c6a877617ec4da3ef6a03288a
- md5sums = 9784cefc4f5964b2469504f83957418f
- md5sums = cde06f485e180f4cc82bcdb450d36153
- md5sums = 0b2eaa5ff3314a3dfcca66425d8f5d81
+ source = http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0
+ md5sums = 631957d2f55277f1d58a68186fbf5022
pkgname = xmlada
diff --git a/PKGBUILD b/PKGBUILD
index a1d571680eb..fe403230cf6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Rod Kay <charlie5 on #ada at freenode.net>
pkgname=xmlada
-pkgver=2015
+pkgver=2016
pkgrel=1
pkgdesc="A full XML suite for Ada"
@@ -12,257 +12,23 @@ url="http://libre.adacore.com/libre/tools/xmlada/"
license=('GPL')
depends=("gcc-ada")
-source=(http://mirrors.cdn.adacore.com/art/564b3e2ec8e196b040fbd143
- Makefile.archy
- generic_gpr.in
- patch-xmlada-config.in)
-md5sums=('98c96b8c6a877617ec4da3ef6a03288a'
- '9784cefc4f5964b2469504f83957418f'
- 'cde06f485e180f4cc82bcdb450d36153'
- '0b2eaa5ff3314a3dfcca66425d8f5d81')
+source=(http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0)
+md5sums=('631957d2f55277f1d58a68186fbf5022')
-GREP=grep
-AWK=gawk
-ECHO=echo
-SORT=sort
-MKDIR=mkdir
-INSTALL_DATA=install
-INSTALL_SCRIPT=install
-RM=rm
-FIND=find
-PRINTF=printf
-SED=sed
-REINPLACE_CMD=sed
-
-prepare()
-{
- WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
- FILESDIR=$srcdir
-
- DUNICODE=$WRKSRC/unicode/dummy_unicode.adb
- DINPSRC=${WRKSRC}/input_sources/dummy_input_sources.adb
- DSAX=${WRKSRC}/sax/dummy_sax.adb
- DDOM=${WRKSRC}/dom/dummy_dom.adb
- DSCHEMA=${WRKSRC}/schema/dummy_schema.adb
-
- cd $srcdir/$pkgname-gpl-$pkgver-src
-
- # dummy-unicode:
- ${GREP} --no-filename ^package ${WRKSRC}/unicode/unicode-*.ads | \
- ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DUNICODE}
- ${ECHO} 'procedure dummy_unicode is' >> ${DUNICODE}
- ${ECHO} 'begin' >> ${DUNICODE}
- ${ECHO} ' null;' >> ${DUNICODE}
- ${ECHO} 'end dummy_unicode;' >> ${DUNICODE}
-
- sed 's/ is;/;/g' ${DUNICODE} > tmp
- sed 's/with package/with/g' tmp > ${DUNICODE}
-
- # dummy-input_sources:
- ${GREP} --no-filename ^package ${WRKSRC}/input_sources/input_sources-*.ads | \
- ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DINPSRC}
- ${ECHO} 'procedure dummy_input_sources is' >> ${DINPSRC}
- ${ECHO} 'begin' >> ${DINPSRC}
- ${ECHO} ' null;' >> ${DINPSRC}
- ${ECHO} 'end dummy_input_sources;' >> ${DINPSRC}
-
- sed 's/ is;/;/g' ${DINPSRC} > tmp
- sed 's/with package/with/g' tmp > ${DINPSRC}
-
- # dummy-sax:
- ${GREP} --no-filename ^package ${WRKSRC}/sax/sax-*.ads | \
- ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DSAX}
- ${ECHO} 'procedure dummy_sax is' >> ${DSAX}
- ${ECHO} 'begin' >> ${DSAX}
- ${ECHO} ' null;' >> ${DSAX}
- ${ECHO} 'end dummy_sax;' >> ${DSAX}
-
- sed 's/ is;/;/g' ${DSAX} > tmp
- sed 's/with package/with/g' tmp > ${DSAX}
-
- # dummy-dom:
- ${GREP} --no-filename ^package ${WRKSRC}/dom/dom-*.ads | \
- ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DDOM}
- ${ECHO} 'procedure dummy_dom is' >> ${DDOM}
- ${ECHO} 'begin' >> ${DDOM}
- ${ECHO} ' null;' >> ${DDOM}
- ${ECHO} 'end dummy_dom;' >> ${DDOM}
-
- sed 's/ is;/;/g' ${DDOM} > tmp
- sed 's/with package/with/g' tmp > ${DDOM}
-
- # dummy-schema:
- ${GREP} --no-filename ^package ${WRKSRC}/schema/schema-*.ads | \
- ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DSCHEMA}
- ${ECHO} 'procedure dummy_schema is' >> ${DSCHEMA}
- ${ECHO} 'begin' >> ${DSCHEMA}
- ${ECHO} ' null;' >> ${DSCHEMA}
- ${ECHO} 'end dummy_schema;' >> ${DSCHEMA}
-
- sed 's/ is;/;/g' ${DSCHEMA} > tmp
- sed 's/with package/with/g' tmp > ${DSCHEMA}
-
-
- # vital gpr files are missing from GPL 2015, recreate them
- #
-
- PORTVERSION="4.6.0.0"
-
-# set -o monitor
-
-# FIND1=${WRKSRC}/schema/dummy_schema.adb
-# FIND1=`find . -name "*" -exec printf ', "%s"' {} \;`
-
-
- FIND1=$(cd ${WRKSRC}/unicode && find * -maxdepth 0 \( -name "unicode*.ads" -o -name "unicode*.adb" \) -exec printf ', "%s"' {} \; )
- FIND2=$(cd ${WRKSRC}/input_sources && find * -maxdepth 0 \( -name "input*.ad[bs]" -o -name "input_sources.ads" \) -exec printf ', "%s"' {} \; )
- FIND3=$(cd ${WRKSRC}/sax && find * -maxdepth 0 -name "sax-*.ad[bs]" -exec printf ', "%s"' {} \; )
- FIND4=$(cd ${WRKSRC}/dom && find * -maxdepth 0 -name "dom-*.ad[bs]" -exec printf ', "%s"' {} \; )
- FIND5=$(cd ${WRKSRC}/schema && find * -maxdepth 0 \( -name "schema*.ad[bs]" -o -name "schema.ads" \) -exec printf ', "%s"' {} \; )
-
-
-
-# FIND1= cd ${WRKSRC}/unicode \
-# && find . \( -name "unicode*.ads" -o -name "unicode*.adb" \) -exec printf ', "%s"' {} \;
-
-# FIND1=' cd ${WRKSRC}/unicode \
-# && find . \( -name "unicode*.ads" -o -name "unicode*.adb" \) -exec printf ', "%s"' {} \;'
-
-# FIND2= cd ${WRKSRC}/input_sources && ${FIND} . \( -name "input*.ad[bs]" \
-# -a ! -name "input_sources.ads" \) -exec ${PRINTF} ', "%s"' {} \;
-
-# FIND3= cd ${WRKSRC}/sax && \
-# ${FIND} . -name "sax-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} \;
-
- # FIND4= cd ${WRKSRC}/dom && \
-# ${FIND} . -name "dom-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} \;
-
- # FIND5= cd ${WRKSRC}/schema && ${FIND} . \( -name "schema*.ad[bs]" \
-# -a ! -name "schema.ads" \) -depth 0 -maxdepth 0 \
-# -exec ${PRINTF} ', "%s"' {} \;
-
-
- ${SED} -e '/^with/d' -e 's|@ZONE@|unicode|' \
- -e "s|@FILES@|${FIND1}|" \
- -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
- > ${WRKSRC}/distrib/xmlada_unicode.gpr
-
-# ${SED} -e '/^with/d' -e 's|@ZONE@|unicode|' \
-# -e "s|@FILES@|`${FIND1}`|" \
-# -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
-# > ${WRKSRC}/distrib/xmlada_unicode.gpr
-
- ${SED} -e 's|@DEPENDS@|unicode|' -e 's|@ZONE@|input_sources|' \
- -e "s|@FILES@|${FIND2}|" \
- -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
- > ${WRKSRC}/distrib/xmlada_input_sources.gpr
-
- ${SED} -e 's|@DEPENDS@|input_sources|' -e 's|@ZONE@|sax|' \
- -e "s|@FILES@|${FIND3}|" \
- -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
- > ${WRKSRC}/distrib/xmlada_sax.gpr
-
- ${SED} -e 's|@DEPENDS@|sax|' -e 's|@ZONE@|dom|' \
- -e "s|@FILES@|${FIND4}|" \
- -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
- > ${WRKSRC}/distrib/xmlada_dom.gpr
-
- ${SED} -e 's|@DEPENDS@|dom|' -e 's|@ZONE@|schema|' \
- -e "s|@FILES@|${FIND5}|" \
- -e 's|@VERSION@|4.6.0.0|' ${FILESDIR}/generic_gpr.in \
- > ${WRKSRC}/distrib/xmlada_schema.gpr
-
- # Since we want to pull in all 5 libs, we only need to specify schema
- #
- ${REINPLACE_CMD} -i -e '/unicode/d' ${WRKSRC}/distrib/xmlada.gpr
-
-
- patch -p0 -i ../patch-xmlada-config.in
-}
-
-
-
-build()
+build()
{
cd $srcdir/$pkgname-gpl-$pkgver-src
./configure --prefix=/usr
-
- ${SED} -e 's|@exec_prefix@|/usr|' \
- -e 's|@libdir@|/usr/lib|' \
- -e 's|@includedir@|/usr/include|' \
- -e 's|@DEFAULT_LIBRARY_TYPE@|static|' \
- -e 's|@PACKAGE_VERSION@|4.6.0.0|' \
- ${WRKSRC}/xmlada-config.in > ${WRKSRC}/xmlada-config
-
-
-
- make -f ../Makefile.archy all
+ make all
}
-
package()
{
cd $srcdir/$pkgname-gpl-$pkgver-src
- STAGEDIR=$pkgdir
- PREFIX=/usr
- WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
-
-
- ${MKDIR} -p \
- ${STAGEDIR}${PREFIX}/bin \
- ${STAGEDIR}${PREFIX}/include/xmlada \
- ${STAGEDIR}${PREFIX}/lib/gnat \
- ${STAGEDIR}${PREFIX}/lib/xmlada/relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/static \
- ${STAGEDIR}${PREFIX}/share/gps/plug-ins
-# ${STAGEDIR}${DOCSDIR}
-
- ${INSTALL_DATA} ${WRKSRC}/dom/*.ad[bs] \
- ${WRKSRC}/input_sources/*.ad[bs] \
- ${WRKSRC}/sax/*.ad[bs] \
- ${WRKSRC}/schema/*.ad[bs] \
- ${WRKSRC}/unicode/*.ad[bs] \
- ${STAGEDIR}${PREFIX}/include/xmlada
-
- ${RM} ${STAGEDIR}${PREFIX}/include/xmlada/dummy_*.adb
-
- ${INSTALL_DATA} ${WRKSRC}/dom/obj/relocatable/*.ali \
- ${WRKSRC}/input_sources/obj/relocatable/*.ali \
- ${WRKSRC}/sax/obj/relocatable/*.ali \
- ${WRKSRC}/schema/obj/relocatable/*.ali \
- ${WRKSRC}/unicode/obj/relocatable/*.ali \
- ${WRKSRC}/dom/lib/relocatable/* \
- ${WRKSRC}/input_sources/lib/relocatable/* \
- ${WRKSRC}/sax/lib/relocatable/* \
- ${WRKSRC}/schema/lib/relocatable/* \
- ${WRKSRC}/unicode/lib/relocatable/* \
- ${STAGEDIR}${PREFIX}/lib/xmlada/relocatable
-
- ${INSTALL_DATA} ${WRKSRC}/dom/obj/static/*.ali \
- ${WRKSRC}/input_sources/obj/static/*.ali \
- ${WRKSRC}/sax/obj/static/*.ali \
- ${WRKSRC}/schema/obj/static/*.ali \
- ${WRKSRC}/unicode/obj/static/*.ali \
- ${WRKSRC}/dom/lib/static/* \
- ${WRKSRC}/input_sources/lib/static/* \
- ${WRKSRC}/sax/lib/static/* \
- ${WRKSRC}/schema/lib/static/* \
- ${WRKSRC}/unicode/lib/static/* \
- ${STAGEDIR}${PREFIX}/lib/xmlada/static
-
- ${INSTALL_DATA} ${WRKSRC}/distrib/xml*.gpr \
- ${STAGEDIR}${PREFIX}/lib/gnat
-
- ${INSTALL_DATA} ${WRKSRC}/distrib/xmlada_gps.py \
- ${STAGEDIR}${PREFIX}/share/gps/plug-ins
-
- ${INSTALL_SCRIPT} ${WRKSRC}/xmlada-config ${STAGEDIR}${PREFIX}/bin/xmlada-config
-
-
-# make -j1 prefix=$pkgdir/usr install
+ make -j1 prefix=$pkgdir/usr install
}