diff --git a/common/shlibs b/common/shlibs index 1c241a6148..4cc3e1c1bd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/ghostscript/depends b/srcpkgs/ghostscript/depends new file mode 100644 index 0000000000..daa819845a --- /dev/null +++ b/srcpkgs/ghostscript/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.8" +api_depends="${abi_depends}" diff --git a/srcpkgs/ghostscript/ghostscript-devel.template b/srcpkgs/ghostscript/ghostscript-devel.template new file mode 100644 index 0000000000..5a93e685c4 --- /dev/null +++ b/srcpkgs/ghostscript/ghostscript-devel.template @@ -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 +} diff --git a/srcpkgs/ghostscript/ghostscript.rshlibs b/srcpkgs/ghostscript/ghostscript.rshlibs new file mode 100644 index 0000000000..cfb3e9be0a --- /dev/null +++ b/srcpkgs/ghostscript/ghostscript.rshlibs @@ -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 diff --git a/srcpkgs/ghostscript/libgs.rshlibs b/srcpkgs/ghostscript/libgs.rshlibs new file mode 100644 index 0000000000..09052d3624 --- /dev/null +++ b/srcpkgs/ghostscript/libgs.rshlibs @@ -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 diff --git a/srcpkgs/ghostscript/libgs.template b/srcpkgs/ghostscript/libgs.template new file mode 100644 index 0000000000..c5aa15b05d --- /dev/null +++ b/srcpkgs/ghostscript/libgs.template @@ -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 +} diff --git a/srcpkgs/ghostscript/libijs.rshlibs b/srcpkgs/ghostscript/libijs.rshlibs new file mode 100644 index 0000000000..631aa1dda4 --- /dev/null +++ b/srcpkgs/ghostscript/libijs.rshlibs @@ -0,0 +1 @@ +libc.so.6 diff --git a/srcpkgs/ghostscript/libijs.template b/srcpkgs/ghostscript/libijs.template new file mode 100644 index 0000000000..8760dd8291 --- /dev/null +++ b/srcpkgs/ghostscript/libijs.template @@ -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 +} diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template new file mode 100644 index 0000000000..d8f059771b --- /dev/null +++ b/srcpkgs/ghostscript/template @@ -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 " +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 +} + diff --git a/srcpkgs/libgs b/srcpkgs/libgs new file mode 120000 index 0000000000..c18e744e3b --- /dev/null +++ b/srcpkgs/libgs @@ -0,0 +1 @@ +ghostscript \ No newline at end of file diff --git a/srcpkgs/libijs b/srcpkgs/libijs new file mode 120000 index 0000000000..c18e744e3b --- /dev/null +++ b/srcpkgs/libijs @@ -0,0 +1 @@ +ghostscript \ No newline at end of file