New package: ghostscript-9.05.

This commit is contained in:
Juan RP 2012-05-16 15:32:41 +02:00
parent ef2d27da5b
commit 4cb2a6dc3c
11 changed files with 142 additions and 0 deletions

View File

@ -979,3 +979,5 @@ libcupscgi.so.1 libcups cups-devel
libcupsdriver.so.1 libcups cups-devel
libcups.so.2 libcups cups-devel
libcupsimage.so.2 libcups cups-devel
libijs-0.35.so libijs ghostscript-devel
libgs.so.9 libgs ghostscript-devel

View File

@ -0,0 +1,2 @@
abi_depends=">=0.8"
api_depends="${abi_depends}"

View File

@ -0,0 +1,16 @@
# Template file for 'ghostscript-devel'.
#
short_desc="${short_desc} -- development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run libijs ">=${version}"
Add_dependency run libgs ">=${version}"
do_install() {
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
vmove usr/bin/ijs-config usr/bin
vmove usr/share/man/man1/ijs-config.1 usr/share/man/man1
}

View File

@ -0,0 +1,17 @@
liblcms2.so.2
libtiff.so.5
libjpeg.so.8
libcupsimage.so.2
libcups.so.2
libpthread.so.0
libm.so.6
libpng14.so.14
libz.so.1
libdl.so.2
libfontconfig.so.1
libfreetype.so.6
libc.so.6
libXt.so.6
libX11.so.6
libijs-0.35.so
libgs.so.9

View File

@ -0,0 +1,13 @@
liblcms2.so.2
libtiff.so.5
libjpeg.so.8
libcupsimage.so.2
libcups.so.2
libpthread.so.0
libm.so.6
libpng14.so.14
libz.so.1
libdl.so.2
libfontconfig.so.1
libfreetype.so.6
libc.so.6

View File

@ -0,0 +1,10 @@
# Template file for 'libgs'.
#
short_desc="${short_desc} -- runtime shared library"
long_desc="${long_desc}
This package contains the runtime shared library."
do_install() {
vmove "usr/lib/libgs.so*" usr/lib
}

View File

@ -0,0 +1 @@
libc.so.6

View File

@ -0,0 +1,10 @@
# Template file for 'libijs'.
#
short_desc="${short_desc} -- IJS runtime shared library"
long_desc="${long_desc}
This package contains the IJS runtime shared library."
do_install() {
vmove "usr/lib/libijs*" usr/lib
}

View File

@ -0,0 +1,69 @@
# Template file for 'ghostscript'
pkgname=ghostscript
version=9.05
distfiles="http://downloads.ghostscript.com/public/$pkgname-$version.tar.bz2"
short_desc="An interpreter for the PostScript language"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.ghostscript.com/"
license="GPL-3, custom"
checksum=0f41212af3a5a552ab2302cd90606dc8245be34490a699726dc95ed3cd89ceac
long_desc="
..."
disable_parallel_build=yes
subpackages="libgs libijs $pkgname-devel"
Add_dependency build automake
Add_dependency build pkg-config
Add_dependency build libXext-devel
Add_dependency build libXt-devel
Add_dependency build cups-devel
Add_dependency build fontconfig-devel
Add_dependency build jasper-devel
Add_dependency build tiff-devel
Add_dependency build jpeg-devel
Add_dependency build libpng-devel
Add_dependency build lcms-devel
Add_dependency build lcms2-devel
pre_configure() {
# force it to use system libs.
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype
}
do_configure() {
# configure ghostscript
./configure ${CONFIGURE_SHARED_ARGS} --enable-dynamic --with-ijs \
--with-jbig2dec --with-omni --with-x --with-drivers=ALL \
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--with-install-cups --enable-fontconfig --enable-freetype \
--without-luratech --with-system-libtiff \
--disable-compile-inits
# configure libijs
cd ijs && ./autogen.sh && \
./configure ${CONFIGURE_SHARED_ARGS} --enable-shared \
--disable-static
}
do_build() {
# build ghostscript
make ${makejobs}
# build libijs
cd ijs && make ${makejobs}
}
do_install() {
# install ghostscript
make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \
cups_serverbin=${DESTDIR}/usr/lib/cups install soinstall
# install missing doc files # http://bugs.archlinux.org/task/18023
install -m644 doc/{Ps2ps2.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} \
${DESTDIR}/usr/share/ghostscript/$version/doc/
# install license
vinstall LICENSE 644 usr/share/licenses/${pkgname}
# install libijs
cd ijs && make DESTDIR=${DESTDIR} install
}

1
srcpkgs/libgs Symbolic link
View File

@ -0,0 +1 @@
ghostscript

1
srcpkgs/libijs Symbolic link
View File

@ -0,0 +1 @@
ghostscript