From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-text/ttf2pt1/Manifest | 7 ++ .../ttf2pt1/files/ttf2pt1-3.4.0-man-pages.diff | 39 ++++++++++ app-text/ttf2pt1/files/ttf2pt1-3.4.4-LDFLAGS.patch | 22 ++++++ .../ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch | 82 ++++++++++++++++++++++ .../ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch | 11 +++ app-text/ttf2pt1/metadata.xml | 11 +++ app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild | 39 ++++++++++ 7 files changed, 211 insertions(+) create mode 100644 app-text/ttf2pt1/Manifest create mode 100644 app-text/ttf2pt1/files/ttf2pt1-3.4.0-man-pages.diff create mode 100644 app-text/ttf2pt1/files/ttf2pt1-3.4.4-LDFLAGS.patch create mode 100644 app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch create mode 100644 app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch create mode 100644 app-text/ttf2pt1/metadata.xml create mode 100644 app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild (limited to 'app-text/ttf2pt1') diff --git a/app-text/ttf2pt1/Manifest b/app-text/ttf2pt1/Manifest new file mode 100644 index 000000000000..e8d08ed13ade --- /dev/null +++ b/app-text/ttf2pt1/Manifest @@ -0,0 +1,7 @@ +AUX ttf2pt1-3.4.0-man-pages.diff 1441 BLAKE2B 20257cf4dc9499641378ed32494577eb0a09dfe485acd7ff92d6e1f620651f07b5ad6fc928158a1bd9935fbae470f673b0acefb1ced83f29911982ddd32109e2 SHA512 af4d6a11db15fc7113bcd3872682899400de01cc97169d0027fe4457c8c9abf02c8b7f93c0ae5783ab05964c4816087118686f3e8195a0ff4d6b5eae41df3b0f +AUX ttf2pt1-3.4.4-LDFLAGS.patch 933 BLAKE2B 278e8baf471727bb191b4cea97691982f454e978dc1d8533ba35d10cb979c107bba8665f21123a3cd8ab75db0e7efd76032ce60045dc05abcc4219569608d0d5 SHA512 b0d292828a71a3f4668e7ce3d177b45030fd7739b9a10fc37ab6788f2a34e4bfdcb2730086592ca5b17071c34b1b3e448642e6fcdc721e5f6e8c0b67511859bf +AUX ttf2pt1-3.4.4-Makefile.patch 2911 BLAKE2B f155d19c1a60a524c18f33b09a0c1c73b2cf7b0d2ded90eaa8b23cbc861cb7eb888f77ee6a1217ae2f6043835ebb3bdaab7bc67238d5d6504e6c412738340891 SHA512 a1bb5f9f2b7517d09bf093b12ac99bfcc517546568fce395aad430de06128b3f3d62e153bdcef249738392676bc21a3e26cbdd1a42203093c56ce8ee035757eb +AUX ttf2pt1-3.4.4-freetype.patch 378 BLAKE2B 03adca507ae8b2556c20dd32c73a302bcb7d5793cb040c706a1e6d86de9f3eb55e8df85a578a2a9fa4cbb3216d50129d33548a7b3472bd7df5417e6a0f6b9b8c SHA512 93cdd2cb660a9416d30189e0ef1e14c97ca686efa2902d8617aec585040ff74b7bea6354296a99600096d1c73acda085217264d5d07e716f2d90a457ea4e9669 +DIST ttf2pt1-3.4.4.tgz 230547 BLAKE2B 58904765afad396692263d9f50017d299828ae847a254bf6a580a0a259dcd03da3d9a97fe370a53a936e70188dab3c96cf0f0ab9069474eef92b9fd31862e455 SHA512 ff2b41b0d54c2feb8565c4bcf9fbc2ce799aa6228815c2787e26127f6c0ca380114b3ab7a12fa50a52279a3452bcb91dbad5c661e83078f25036f69a4d1cf014 +EBUILD ttf2pt1-3.4.4-r1.ebuild 1062 BLAKE2B 77f768d23a2b22649425a746d2b993a28951090569566a298fbd0b37bfaa0a1ea18c7ca2b540c0636f40fab385db85b8babb334ddedaae4521801643c38c640d SHA512 b57372e8fde2440219d85eae0898775c2f73115788a7f0e168dc4907b5aa97b45e10a88d80d1c1c883fff989b071fbe90b506d078d9546b9874ddb046ff77088 +MISC metadata.xml 315 BLAKE2B e2eecb62a8d7f8a509b9b09a251e32bf3129a9c5205ea5574271fb6660226d14f4a1870481b053690d9794cef6e239051a05075586ec7e38ff6bd5219e9d537b SHA512 2061dd88c2b81b9ac8c6f55bf10f39908f457741f14b4e949563b9195a3e5a09724ed585569acd5426bf0f95d740abdd1a4a61301f970814c7cf6e45f960a9e3 diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.0-man-pages.diff b/app-text/ttf2pt1/files/ttf2pt1-3.4.0-man-pages.diff new file mode 100644 index 000000000000..2d301244272c --- /dev/null +++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.0-man-pages.diff @@ -0,0 +1,39 @@ +diff -ur ttf2pt1-3.4.0.orig/ttf2pt1.1 ttf2pt1-3.4.0/ttf2pt1.1 +--- ttf2pt1-3.4.0.orig/ttf2pt1.1 2001-11-25 00:58:11.000000000 +0000 ++++ ttf2pt1-3.4.0/ttf2pt1.1 2006-08-15 19:15:37.129672839 +0000 +@@ -109,7 +109,8 @@ + .. + .\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2 + . \" AM - accent mark definitions +-.bd B 3 ++''' Next line commented because it garbles bold font when viewed with man-1.6 ++'''.bd B 3 + . \" fudge factors for nroff and troff + .if n \{\ + . ds #H 0 +diff -ur ttf2pt1-3.4.0.orig/ttf2pt1_convert.1 ttf2pt1-3.4.0/ttf2pt1_convert.1 +--- ttf2pt1-3.4.0.orig/ttf2pt1_convert.1 2001-11-25 00:58:13.000000000 +0000 ++++ ttf2pt1-3.4.0/ttf2pt1_convert.1 2006-08-15 19:16:14.369517359 +0000 +@@ -109,7 +109,8 @@ + .. + .\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2 + . \" AM - accent mark definitions +-.bd B 3 ++''' Next line commented because it garbles bold font when viewed with man-1.6 ++'''.bd B 3 + . \" fudge factors for nroff and troff + .if n \{\ + . ds #H 0 +diff -ur ttf2pt1-3.4.0.orig/ttf2pt1_x2gs.1 ttf2pt1-3.4.0/ttf2pt1_x2gs.1 +--- ttf2pt1-3.4.0.orig/ttf2pt1_x2gs.1 2001-11-25 00:58:13.000000000 +0000 ++++ ttf2pt1-3.4.0/ttf2pt1_x2gs.1 2006-08-15 19:16:30.770568473 +0000 +@@ -109,7 +109,8 @@ + .. + .\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2 + . \" AM - accent mark definitions +-.bd B 3 ++''' Next line commented because it garbles bold font when viewed with man-1.6 ++'''.bd B 3 + . \" fudge factors for nroff and troff + .if n \{\ + . ds #H 0 diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-LDFLAGS.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-LDFLAGS.patch new file mode 100644 index 000000000000..3d03e03e14ca --- /dev/null +++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-LDFLAGS.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile b/Makefile +index 2616d46..cf72cba 100644 +--- a/Makefile ++++ b/Makefile +@@ -179,7 +179,7 @@ app/RPM/ttf2pt1.spec: app/RPM/ttf2pt1.spec.src version.h + sed 's/^Version:.*/Version: '`grep TTF2PT1_VERSION version.h| cut -d\" -f2`'/' $@ + + t1asm: t1asm.c +- $(CC) $(CFLAGS) -o t1asm -DSTANDALONE t1asm.c $(LIBS) ++ $(CC) $(CFLAGS) -o t1asm -DSTANDALONE t1asm.c $(LDFLAGS) $(LIBS) + + ttf2pt1.o: ttf2pt1.c ttf.h pt1.h global.h version.h + $(CC) $(CFLAGS) -c ttf2pt1.c +@@ -203,7 +203,7 @@ runt1asm.o: runt1asm.c global.h + $(CC) $(CFLAGS) $(CFLAGS_EXTT1ASM) -c runt1asm.c + + ttf2pt1: ttf2pt1.o pt1.o runt1asm.o ttf.o ft.o bdf.o bitmap.o +- $(CC) $(CFLAGS) -o ttf2pt1 ttf2pt1.o pt1.o runt1asm.o ttf.o ft.o bdf.o bitmap.o $(LIBS) ++ $(CC) $(CFLAGS) -o ttf2pt1 ttf2pt1.o pt1.o runt1asm.o ttf.o ft.o bdf.o bitmap.o $(LDFLAGS) $(LIBS) + + CHANGES: CHANGES.html + scripts/unhtml CHANGES diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch new file mode 100644 index 000000000000..6c760f43dd21 --- /dev/null +++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch @@ -0,0 +1,82 @@ +diff -Naur ttf2pt1-3.4.4-orig/Makefile ttf2pt1-3.4.4/Makefile +--- ttf2pt1-3.4.4-orig/Makefile 2007-07-15 20:06:50.000000000 -0600 ++++ ttf2pt1-3.4.4/Makefile 2007-07-15 20:12:40.000000000 -0600 +@@ -9,7 +9,7 @@ + # + # Use GNU C even if it's not the default compiler + # +-#CC=gcc ++CC=gcc + # + # Use the standard ANSI C compiler on HP-UX even if it's not default + # +@@ -60,18 +60,18 @@ + # (if the include and lib directory do not match your installation, + # modify them), also uncomment LIBS_FT + # +-#CFLAGS_FT = -DUSE_FREETYPE -I/usr/local/include/freetype2 -I/usr/local/include ++CFLAGS_FT = -DUSE_FREETYPE -I/usr/include/freetype2 -I/usr/include + + # + # The FreeType-2 library flags (disabled by default) + +-LIBS_FT= ++#LIBS_FT= + + # To enable use of the FreeType-2 library + # (if the include and lib directory do not match your installation, + # modify them), also uncomment CFLAGS_FT + # +-#LIBS_FT= -L/usr/local/lib -lfreetype ++LIBS_FT= -L/usr/lib -lfreetype + + # + # The flags for C compiler for the Autotrace library (disabled by default). +@@ -120,18 +120,18 @@ + # Installation-related stuff + # + # The base dir for installation and subdirs in it +-INSTDIR = /usr/local ++INSTDIR = /usr + # for binaries + BINDIR = $(INSTDIR)/bin + # for binaries of little general interest + LIBXDIR = $(INSTDIR)/libexec/ttf2pt1 + # for scripts, maps/encodings etc. + SHAREDIR = $(INSTDIR)/share/ttf2pt1 +-MANDIR = $(INSTDIR)/man ++MANDIR = $(INSTDIR)/share/man + + # owner and group of installed files + OWNER = root +-GROUP = bin ++GROUP = root + + # After you have configured the Makefile, comment out the following + # definition: +@@ -244,17 +244,19 @@ + chmod -R go-w $(SHAREDIR) + scripts/inst_file ttf2pt1 $(BINDIR)/ttf2pt1 $(OWNER) $(GROUP) 0755 + [ -f $(BINDIR)/t1asm ] || scripts/inst_file t1asm $(LIBXDIR)/t1asm $(OWNER) $(GROUP) 0755 +- sed 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|;\ +- s|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|;\ +- s|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|;' cvt.tmp ++ sed -e 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|' \ ++ -e 's|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|' \ ++ -e 's|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|' \ ++ cvt.tmp + scripts/inst_file cvt.tmp $(BINDIR)/ttf2pt1_convert $(OWNER) $(GROUP) 0755 + scripts/inst_file cvt.tmp $(SHAREDIR)/scripts/convert $(OWNER) $(GROUP) 0755 + rm cvt.tmp + scripts/inst_file scripts/x2gs $(BINDIR)/ttf2pt1_x2gs $(OWNER) $(GROUP) 0755 + for i in $(MANS1); do { \ +- sed 's|TTF2PT1_BINDIR|$(BINDIR)|;\ +- s|TTF2PT1_LIBXDIR|$(LIBXDIR)|;\ +- s|TTF2PT1_SHAREDIR|$(SHAREDIR)|;' <$$i >$(MANDIR)/man1/$$i \ ++ sed -e 's|TTF2PT1_BINDIR|$(BINDIR)|' \ ++ -e 's|TTF2PT1_LIBXDIR|$(LIBXDIR)|' \ ++ -e 's|TTF2PT1_SHAREDIR|$(SHAREDIR)|' \ ++ <$$i >$(MANDIR)/man1/$$i \ + && chown $(OWNER) $(MANDIR)/man1/$$i \ + && chgrp $(GROUP) $(MANDIR)/man1/$$i \ + && chmod 0644 $(MANDIR)/man1/$$i \ diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch new file mode 100644 index 000000000000..8257742ebe59 --- /dev/null +++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch @@ -0,0 +1,11 @@ +diff -Naur ttf2pt1-3.4.4-orig/ft.c ttf2pt1-3.4.4/ft.c +--- ttf2pt1-3.4.4-orig/ft.c 2007-07-15 20:23:43.000000000 -0600 ++++ ttf2pt1-3.4.4/ft.c 2007-07-15 20:24:02.000000000 -0600 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/app-text/ttf2pt1/metadata.xml b/app-text/ttf2pt1/metadata.xml new file mode 100644 index 000000000000..7c608c9e66b9 --- /dev/null +++ b/app-text/ttf2pt1/metadata.xml @@ -0,0 +1,11 @@ + + + + + fonts@gentoo.org + Fonts + + + ttf2pt1 + + diff --git a/app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild b/app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild new file mode 100644 index 000000000000..ed543c6808a4 --- /dev/null +++ b/app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="True Type Font to Postscript Type 1 Converter" +HOMEPAGE="http://ttf2pt1.sourceforge.net/" +SRC_URI="mirror://sourceforge/ttf2pt1/${P}.tgz" + +LICENSE="ttf2pt1" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +DEPEND=">=media-libs/freetype-2.5.1:2" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-Makefile.patch + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + epatch "${FILESDIR}"/${PN}-3.4.0-man-pages.diff + epatch "${FILESDIR}"/${P}-freetype.patch + + sed -i -e "/^CC=/ { s:gcc:$(tc-getCC): }" Makefile + sed -i -e "/^CFLAGS_SYS=/ { s:-O.*$:${CFLAGS}: }" Makefile + sed -i -e "/^LIBS_FT=/ { s:-L/usr/lib:-L/usr/$(get_libdir): }" Makefile + sed -i -e "/^LIBXDIR =/ { s:libexec:$(get_libdir): }" Makefile +} + +src_install() { + emake INSTDIR="${D}"/usr install + dodir /usr/share/doc/${PF} + pushd "${D}"/usr/share/ttf2pt1 > /dev/null + rm -r app other + mv [A-Z]* ../doc/${PF} + popd > /dev/null +} -- cgit v1.2.3