2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'openjade'
|
|
pkgname=openjade
|
|
version=1.3.2
|
|
revision=9
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--datadir=/usr/share/sgml/openjade
|
|
--enable-default-catalog=/usr/share/sgml/catalog
|
|
--enable-splibdir=/usr/lib
|
|
--enable-spincludedir=${XBPS_CROSS_BASE}/usr/include/OpenSP
|
|
--enable-splibdir=${XBPS_CROSS_BASE}/usr/lib"
|
|
hostmakedepends="libtool perl"
|
|
makedepends="opensp-devel"
|
|
depends="xmlcatmgr"
|
|
sgml_entries="CATALOG /usr/share/sgml/openjade/catalog --"
|
|
short_desc="SGML/XML parser toolkit and DSSSL engine"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://openjade.sourceforge.net/"
|
|
license="MIT"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-$version.tar.gz"
|
|
checksum=1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
|
|
|
|
CXXFLAGS="-fno-lifetime-dse"
|
|
|
|
pre_configure() {
|
|
touch configure Makefile.in
|
|
libtoolize -f
|
|
}
|
|
post_install() {
|
|
vlicense jadedoc/copying.txt
|
|
|
|
cd ${DESTDIR}/usr/bin
|
|
ln -s openjade jade
|
|
|
|
install -d ${DESTDIR}/usr/share/sgml/openjade/{jade,}doc
|
|
|
|
cp -a ${wrksrc}/dsssl/* ${DESTDIR}/usr/share/sgml/${pkgname}
|
|
cp -a ${wrksrc}/pubtext ${DESTDIR}/usr/share/sgml/${pkgname}
|
|
cp -a ${wrksrc}/doc/*.htm ${DESTDIR}/usr/share/sgml/${pkgname}/doc
|
|
cp -a ${wrksrc}/jadedoc/images ${DESTDIR}/usr/share/sgml/${pkgname}/jadedoc
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
|
}
|