From fe34318b4a73a58b4556fab2db47d8cbf49c6c69 Mon Sep 17 00:00:00 2001 From: onekk Date: Wed, 16 Apr 2014 22:40:46 +0200 Subject: [PATCH 1/3] a2ps: New Package --- common/shlibs | 2 +- srcpkgs/a2ps/template | 41 +++++++++++++++++++++++++++++++++++++++++ srcpkgs/liba2ps | 1 + srcpkgs/liba2ps-devel | 1 + 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/a2ps/template create mode 120000 srcpkgs/liba2ps create mode 120000 srcpkgs/liba2ps-devel diff --git a/common/shlibs b/common/shlibs index 3db3f9bb4fb..c903f55dc2c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1557,4 +1557,4 @@ libogmrip-mplayer.so.1 ogmrip-1.0.0_1 libogmrip.so.1 ogmrip-1.0.0_1 libogmrip-lavc.so.1 ogmrip-1.0.0_1 libogmdvd-gtk.so.1 ogmrip-1.0.0_1 - +liba2ps.so.1 liba2ps-4.14_1 diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template new file mode 100644 index 00000000000..4de82a8047f --- /dev/null +++ b/srcpkgs/a2ps/template @@ -0,0 +1,41 @@ +# Template file for 'a2ps' + +pkgname="a2ps" +version="4.14" +revision=1 +build_style=gnu-configure +short_desc="Any to PS filter" +maintainer="Carlo Dormeletti " +license="GPL-2" +hostmakedepends="perl gperf" +makedepends="ghostscript ImageMagick psutils groff cups" +depends="liba2ps>=${version}" +conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg" +homepage="http://www.gnu.org/software/a2ps/" +distfiles="http://ftp.gnu.org/gnu/a2ps/a2ps-${version}.tar.gz" +checksum="f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4" + +do_configure() { + sed -i "s/GPERF --version |/& head -n 1 |/" ./configure + sed -i "s|/usr/local/share|/usr/share|" ./configure + LIBS+="-lm" ./configure --prefix=/usr --sysconfdir=/etc/a2ps --enable-shared --with-medium=A4 +} + + +liba2ps-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + } +} + +liba2ps_package() { + short_desc+=" - library files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "usr/lib/*.so.*" + + } +} diff --git a/srcpkgs/liba2ps b/srcpkgs/liba2ps new file mode 120000 index 00000000000..64c3e4ccca0 --- /dev/null +++ b/srcpkgs/liba2ps @@ -0,0 +1 @@ +a2ps/ \ No newline at end of file diff --git a/srcpkgs/liba2ps-devel b/srcpkgs/liba2ps-devel new file mode 120000 index 00000000000..64c3e4ccca0 --- /dev/null +++ b/srcpkgs/liba2ps-devel @@ -0,0 +1 @@ +a2ps/ \ No newline at end of file From c96a87ef62a6829c36fb7a391391a0834392c6bd Mon Sep 17 00:00:00 2001 From: onekk Date: Thu, 17 Apr 2014 11:40:45 +0200 Subject: [PATCH 2/3] a2ps: modified template --- srcpkgs/a2ps/template | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template index 4de82a8047f..2d769e2304d 100644 --- a/srcpkgs/a2ps/template +++ b/srcpkgs/a2ps/template @@ -6,19 +6,19 @@ revision=1 build_style=gnu-configure short_desc="Any to PS filter" maintainer="Carlo Dormeletti " -license="GPL-2" +license="GPL-3" hostmakedepends="perl gperf" -makedepends="ghostscript ImageMagick psutils groff cups" -depends="liba2ps>=${version}" +makedepends="ghostscript psutils groff cups" +configure_args="--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4" +LDFLAGS="-lm" conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg" homepage="http://www.gnu.org/software/a2ps/" distfiles="http://ftp.gnu.org/gnu/a2ps/a2ps-${version}.tar.gz" checksum="f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4" -do_configure() { +pre_configure() { sed -i "s/GPERF --version |/& head -n 1 |/" ./configure sed -i "s|/usr/local/share|/usr/share|" ./configure - LIBS+="-lm" ./configure --prefix=/usr --sysconfdir=/etc/a2ps --enable-shared --with-medium=A4 } @@ -33,7 +33,6 @@ liba2ps-devel_package() { liba2ps_package() { short_desc+=" - library files" - depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove "usr/lib/*.so.*" From eb83ab6bea5e9a170487a98c0a81b0311dbe554e Mon Sep 17 00:00:00 2001 From: onekk Date: Thu, 17 Apr 2014 15:43:49 +0200 Subject: [PATCH 3/3] a2ps: modified template file integrating proposed changes, compile fine without warnings --- srcpkgs/a2ps/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template index 2d769e2304d..765316e9af0 100644 --- a/srcpkgs/a2ps/template +++ b/srcpkgs/a2ps/template @@ -9,6 +9,7 @@ maintainer="Carlo Dormeletti " license="GPL-3" hostmakedepends="perl gperf" makedepends="ghostscript psutils groff cups" +depends="${makedepends} liba2ps" configure_args="--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4" LDFLAGS="-lm" conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg" @@ -21,10 +22,9 @@ pre_configure() { sed -i "s|/usr/local/share|/usr/share|" ./configure } - liba2ps-devel_package() { short_desc+=" - development files" - depends="${sourcepkg}>=${version}_${revision}" + depends="liba2ps>=${version}_${revision}" pkg_install() { vmove usr/include vmove "usr/lib/*.a"