dev-libs/pslib: drop old EAPI
authorAaron Bauman <bman@gentoo.org>
Sat, 26 May 2018 01:39:44 +0000 (21:39 -0400)
committerAaron Bauman <bman@gentoo.org>
Sat, 26 May 2018 13:57:45 +0000 (09:57 -0400)
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/8592

dev-libs/pslib/Manifest
dev-libs/pslib/files/pslib-getline.patch [deleted file]
dev-libs/pslib/files/pslib-lm.patch [deleted file]
dev-libs/pslib/pslib-0.4.1-r2.ebuild [deleted file]

index 7cc3ab271f338805b98c12b486c511c128501568..979f121724a2f5ebfe7c30f8cbea62d2daf081f5 100644 (file)
@@ -1,2 +1 @@
-DIST pslib-0.4.1.tar.gz 531797 BLAKE2B 28224be5411739d20118e3457050b7fc388ad0c5f1f14403080732588b16b2bfc89bad5ce8383db5d5da85fceca466fe81588550c949d18c5c4965889c26f9bc SHA512 012c0b2de1cb151fc41498ca4e6f62ec15138b35afddd0199c6366b818c7b544877eea9575df0e1aee49a67cd52dcac47eae405854e7390abeb64fda221327cf
 DIST pslib-0.4.5.tar.gz 493687 BLAKE2B cca0709bc3fa9f464166b02ca54d85056c510f677b478b4f187fba653b3a17af38c3c7ffbea23113d5ad3a146e881d183f138d836cd5f373a116e836ba8d4974 SHA512 410abfdca6c52f16c07b7d0157930fbb7a996f03bfb84aee2bc951b2d859bc2186d3ba742b724cd957b9b1c48201364fbeb11c15d7f4ead34f78b0d0746abc6f
diff --git a/dev-libs/pslib/files/pslib-getline.patch b/dev-libs/pslib/files/pslib-getline.patch
deleted file mode 100644 (file)
index cfe7ce4..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
---- src/ps_afm.c       2007-07-11 20:18:00.000000000 +0200
-+++ src/ps_afm.c.fix   2009-07-11 14:51:05.000000000 +0200
-@@ -138,7 +138,7 @@
-       return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
- }
--static int getline(FILE *afmin) {
-+static int pslib_getline(FILE *afmin) {
-       char *p ;
-       int c ;
-@@ -616,7 +616,7 @@
-               return(-1);
-       }
--      while (getline(fp)) {
-+      while (pslib_getline(fp)) {
-               switch(interest(paramstring())) {
-                       case N:
-                               handleprotusion(psdoc, metrics) ;
-@@ -664,7 +664,7 @@
-       /*
-        * Read file line by line.
-        */
--      while (getline(metric->afmin)) {
-+      while (pslib_getline(metric->afmin)) {
-               switch(interest(paramstring())) {
- case FontName:
-                       metric->fontname = paramnewstring(psdoc) ;
-@@ -1039,7 +1039,7 @@
-       while (1) {
-               while (param == NULL || *param == '\0') {
--                      if (getline(metrics->afmin) == 0)
-+                      if (pslib_getline(metrics->afmin) == 0)
-                               ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
-                       for (p=buffer; *p != '\0'; p++)
-                               if (*p == '%') {
-@@ -1160,7 +1160,7 @@
-                       psdoc->free(psdoc, e);
-                       return -1;
-               }
--              while (getline(metrics->afmin)) {
-+              while (pslib_getline(metrics->afmin)) {
-                       for (p=buffer; *p != '\0'; p++)
-                               if (*p == '%') {
-                                       if (ignoreligkern == 0)
diff --git a/dev-libs/pslib/files/pslib-lm.patch b/dev-libs/pslib/files/pslib-lm.patch
deleted file mode 100644 (file)
index 46292ee..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/configure.in     2007-10-30 02:38:30.000000000 -0500
-+++ b/configure.in     2009-01-21 18:55:37.000000000 -0600
-@@ -92,6 +92,8 @@
- AC_SUBST(LIBHNJ_CFLAGS)
- AC_SUBST(LIBHNJ_LIBS)
-+AC_CHECK_LIB([m], [pow])
-+
- PNG_PREFIX=no
- AC_ARG_WITH(png, [  --with-png=DIR          Path to png library (/usr)])
- case "${withval}" in
diff --git a/dev-libs/pslib/pslib-0.4.1-r2.ebuild b/dev-libs/pslib/pslib-0.4.1-r2.ebuild
deleted file mode 100644 (file)
index e0f19c0..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=2
-inherit autotools eutils
-
-DESCRIPTION="pslib is a C-library to create PostScript files on the fly"
-HOMEPAGE="http://pslib.sourceforge.net/"
-SRC_URI="mirror://sourceforge/pslib/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ~ppc64 ~sparc ~x86"
-IUSE="debug jpeg png tiff"
-
-RDEPEND="png? ( >=media-libs/libpng-1.2.43-r2:0 )
-       jpeg? ( virtual/jpeg )
-       tiff? ( media-libs/tiff )"
-#gif? requires libungif, not in portage
-DEPEND="${RDEPEND}
-       dev-lang/perl
-       >=dev-libs/glib-2
-       dev-util/intltool
-       dev-perl/XML-Parser"
-
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-lm.patch \
-               "${FILESDIR}"/${PN}-getline.patch
-
-       sed -i \
-               -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
-               src/pslib.c || die
-
-       eautoreconf
-}
-
-src_configure() {
-       econf \
-               $(use_with png) \
-               $(use_with jpeg) \
-               $(use_with tiff) \
-               $(use_with debug)
-}
-
-src_install() {
-       emake DESTDIR="${D}" install || die
-       dodoc AUTHORS README
-}