summaryrefslogtreecommitdiff
path: root/print/dvipsk
diff options
context:
space:
mode:
authorroy <roy>2009-07-15 18:56:44 +0000
committerroy <roy>2009-07-15 18:56:44 +0000
commit4579e5bcb66dc28843b89cd56b7ae51dce987c73 (patch)
tree01a2ed045cd98695b52063379b8510de39074788 /print/dvipsk
parent4f4dfffc08f4f2961670319385c5f2de909508c7 (diff)
downloadpkgsrc-4579e5bcb66dc28843b89cd56b7ae51dce987c73.tar.gz
Fix compiling with systems that provide their own getline
Diffstat (limited to 'print/dvipsk')
-rw-r--r--print/dvipsk/distinfo3
-rw-r--r--print/dvipsk/patches/patch-ab42
2 files changed, 44 insertions, 1 deletions
diff --git a/print/dvipsk/distinfo b/print/dvipsk/distinfo
index 9b912d03e63..45b22459ef5 100644
--- a/print/dvipsk/distinfo
+++ b/print/dvipsk/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/02/17 19:10:49 minskim Exp $
+$NetBSD: distinfo,v 1.2 2009/07/15 18:56:44 roy Exp $
SHA1 (texlive-20080816-source.tar.lzma) = 730986c628bd658b5062face9e400f61203d6b8d
RMD160 (texlive-20080816-source.tar.lzma) = 629784b111c0d4bc9fac9f9131f63203d6e1dd38
Size (texlive-20080816-source.tar.lzma) = 23175835 bytes
SHA1 (patch-aa) = dc2c5ff745a3c73aebb9f16c2b5f525195f4026a
+SHA1 (patch-ab) = 809e12301d9fc261b3d6e24174c3628ef788fe80
diff --git a/print/dvipsk/patches/patch-ab b/print/dvipsk/patches/patch-ab
new file mode 100644
index 00000000000..4b26418c855
--- /dev/null
+++ b/print/dvipsk/patches/patch-ab
@@ -0,0 +1,42 @@
+$NetBSD: patch-ab,v 1.1 2009/07/15 18:56:44 roy Exp $
+
+Rename getline to texlive_getline to avoid conflict with system getline.
+
+--- afm2tfm.c.orig 2009-07-15 19:52:45.000000000 +0100
++++ afm2tfm.c 2009-07-15 19:54:08.000000000 +0100
+@@ -260,7 +260,7 @@
+ }
+
+ int
+-getline P1H(void) {
++texlive_getline P1H(void) {
+ register char *p ;
+ register int c ;
+
+@@ -615,7 +615,7 @@
+ ai = newchar() ;
+ ai->adobenum = -1 ;
+ ai->adobename = "||" ; /* boundary character name */
+- while (getline()) {
++ while (texlive_getline()) {
+ switch(interest(paramstring())) {
+ case FontName:
+ fontname = paramnewstring() ;
+@@ -1891,7 +1891,7 @@
+
+ while (1) {
+ while (param == 0 || *param == 0) {
+- if (getline() == 0)
++ if (texlive_getline() == 0)
+ error("! premature end in encoding file") ;
+ for (p=buffer; *p; p++)
+ if (*p == '%') {
+@@ -1982,7 +1982,7 @@
+ p = gettoken() ;
+ if (strcmp(p, "]"))
+ error("! token 258 in encoding must be make-array (])") ;
+- while (getline()) {
++ while (texlive_getline()) {
+ for (p=buffer; *p; p++)
+ if (*p == '%') {
+ if (ignoreligkern == 0)