diff options
Diffstat (limited to 'media-gfx/peps')
-rw-r--r-- | media-gfx/peps/Manifest | 6 | ||||
-rw-r--r-- | media-gfx/peps/metadata.xml | 12 | ||||
-rw-r--r-- | media-gfx/peps/peps-2.0-r1.ebuild | 54 | ||||
-rw-r--r-- | media-gfx/peps/peps-2.0.ebuild | 53 |
4 files changed, 125 insertions, 0 deletions
diff --git a/media-gfx/peps/Manifest b/media-gfx/peps/Manifest new file mode 100644 index 000000000000..91fab94e148c --- /dev/null +++ b/media-gfx/peps/Manifest @@ -0,0 +1,6 @@ +DIST peps-2.0.tar.gz 55421 SHA256 b514fed9412548cdcf43a95b6dcf01b2038f314bc9ef363498ebd2779c897a91 SHA512 38940b4288c688d7a5f2a71d260b0b0aafc849988bba6859244a7409b4b08a2d3c1b43adcc940c7af4ff9313b7203ea92858fc855ddf2864548566d78890d767 WHIRLPOOL b0582e377d17a05da20b732d02d4d081e681ac589c0cdca076abe087d0c14067c23fbbb1558d1e51aacacf1c802088296db24c2c0eec2bb5b0f8cd8dabe4de60 +EBUILD peps-2.0-r1.ebuild 1206 SHA256 bb2fad5e64178604d8bf464147bfd7891d4c1a1dd5d11b4936002e618b736a89 SHA512 59bdc101e460fb1e05767b2b568ea4eddc7d4a521a7f38246ea3701d7d05d9fa0d0062e42c0183f28f9817baa594a8c0a12d037a0219194d0edfae0c10ea456a WHIRLPOOL 194a54ec77278644b71659edb15f9c72338e2dbf6ddc00619bd5f03e8d1f79313d758aaf3491df8841a63d2f3d65710ea333b606623be49f825fc08f11dd4801 +EBUILD peps-2.0.ebuild 1222 SHA256 9b601718b9353d2244067bf1c0e364a6f1645f675670ad26bbf6aa9616607b03 SHA512 c74dd4fca96d5764427321aa07804a086118f55207196e526eeb4d6f175f0ca8fcf2e6cd2a380eabd8d1e8820dcdd9146e03e1e7f56263f2e15591474c8cc303 WHIRLPOOL ba47fa8c87c2830e03b2d83c5d6fa661c7f98d6bd8acf7d59f9eb3b84a79ee5541dc66bf1f520c05fb72d1b27c2625ab33fb69fafa65ff35dc4ad7ede508bfd8 +MISC ChangeLog 2510 SHA256 0307094470bd85c057ea17de31022b9e2de757fcf86d570fd2522b8b28e15714 SHA512 735effde88585ea111e4bdac6d5502fa5693fd6a4a806c09a16f28596c1a8c5b946c18bdb8b958ba409771ddc1be3559d84ecff0c25e4329f7d34d8f3f259e7c WHIRLPOOL cbd487d4d5d3ad7cbd2e9c7a48144f8146f4f9326864f1fc81c33a3d575690c1d1d4af00d8fa40950927eb376d0b34df82936ccdb12f59e08db4704bbcb818ff +MISC ChangeLog-2015 1047 SHA256 efadf2ed2bfe46eba773e2d3e6870db8cb6ab6340a1440fe8ca5c303fa9e75b4 SHA512 df7df50bb519f53767c34c1b15d16cb0f918d28931cb5b7d78bae04a132c3a9b4b85c8b732885bdcbf743ae0347995a4271a7615d41c655c57cc5eaf6234a7e7 WHIRLPOOL 67464250e4269456124e9a2ab06daf3165d58911357d4c1908a83e74360dae5329deca23c80d39e310c689fa5f10c85dd75be3998ee509fd9d0ac870e2789675 +MISC metadata.xml 512 SHA256 9b797f4e61e4a98643ef3869279e27931792ebcdeeaf535265f29e421117c41c SHA512 3ee45ee8181f04c3d1bd36170eb0ec59906c9c35962c78e5c21e656bdc240e39d6c788e7eb33189c1142a9098e6da3639ebc10063713332c49b32af4c4055ab5 WHIRLPOOL 026457b3bb72d9d92e0a868837098b7c0a6d396a06de215f0dd78a8f610d53a46dcd561e3d4265d255892523f9a04d5010bcf1a02ffffe9d0039657b3ed6f296 diff --git a/media-gfx/peps/metadata.xml b/media-gfx/peps/metadata.xml new file mode 100644 index 000000000000..c9cedb15eff0 --- /dev/null +++ b/media-gfx/peps/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + peps will preprocess encapsulated Postscript files and allow you to + convert them into bitmaps. Note the word allow: peps does not do the + conversion for you. Rather, it prepares the Postscript input for a + bitmap conversion by Ghostscript, which must already be installed on + your system. + </longdescription> +</pkgmetadata> diff --git a/media-gfx/peps/peps-2.0-r1.ebuild b/media-gfx/peps/peps-2.0-r1.ebuild new file mode 100644 index 000000000000..8b79fa61acf1 --- /dev/null +++ b/media-gfx/peps/peps-2.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Preprocess and convert EPS files to bitmap with Ghostscript" +HOMEPAGE="http://peps.redprince.net/peps/" +SRC_URI="http://www.peps.redprince.net/peps/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" + +DEPEND="app-text/ghostscript-gpl + app-arch/gzip" +RDEPEND="${DEPEND}" + +pkg_setup() { + if use X && ! grep -q x11gray4 <(gs -h 2>/dev/null); then + die "you need a ghostscript version with 'x11' and 'x11gray4' devices!" + fi +} + +src_prepare() { + default + # adding <string.h> include + sed -i -e "s:^\(#include.*<unistd.h>.*\):\1\n#include <string.h>:" peps.c || die + # adding LDFLAGS to Makefile + sed -i -e "s:\( -o \): \${LDFLAGS}\1:g" Makefile || die +} + +src_compile() { + local myopts="peps" + use X && myopts="${myopts} xpeps" + emake CC="$(tc-getCC)" ${myopts} +} + +src_install() { + # manual install, because fixing dumb Makefile is more compilcated + dobin peps + use X && dobin xpeps + + doman peps.1 + dodoc README + + insinto /etc + doins peps.mime + + # copy PDF so it won't be compressed + cp peps.pdf "${D}usr/share/doc/${PF}" || die +} diff --git a/media-gfx/peps/peps-2.0.ebuild b/media-gfx/peps/peps-2.0.ebuild new file mode 100644 index 000000000000..e232d298ea69 --- /dev/null +++ b/media-gfx/peps/peps-2.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Preprocess and convert EPS files to bitmap with Ghostscript" +HOMEPAGE="http://peps.redprince.net/peps/" +SRC_URI="http://www.peps.redprince.net/peps/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X" + +DEPEND="app-text/ghostscript-gpl + app-arch/gzip" +RDEPEND="${DEPEND}" + +pkg_setup() { + if use X && ! grep -q x11gray4 <(gs -h 2>/dev/null); then + die "you need a ghostscript version with 'x11' and 'x11gray4' devices!" + fi +} + +src_prepare() { + # adding <string.h> include + sed -i -e "s:^\(#include.*<unistd.h>.*\):\1\n#include <string.h>:" peps.c + # adding LDFLAGS to Makefile + sed -i -e "s:\( -o \): \${LDFLAGS}\1:g" Makefile +} + +src_compile() { + local myopts="peps" + use X && myopts="${myopts} xpeps" + emake CC="$(tc-getCC)" ${myopts} || die "emake failed" +} + +src_install() { + # manual install, because fixing dumb Makefile is more compilcated + dobin peps || die "install failed" + use X && dobin xpeps + + doman peps.1 + dodoc README + + insinto /etc + doins peps.mime + + # copy PDF so it won't be compressed + cp peps.pdf "${D}usr/share/doc/${PF}" +} |