diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-03-27 18:29:47 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-03-27 18:29:47 +0800 |
commit | cba28584796e0ca1e2587c7697d4ea7aedeaf28b (patch) | |
tree | 4c327e04e8ad10bcbf7498c51ab3fe92af0e3206 /chinese/ttf2pt1 | |
parent | c5ff3ab3ec18a4eb7cfcf3021a2f9ab64248bafd (diff) | |
download | freebsd-ports-gnome-cba28584796e0ca1e2587c7697d4ea7aedeaf28b.tar.gz freebsd-ports-gnome-cba28584796e0ca1e2587c7697d4ea7aedeaf28b.tar.zst freebsd-ports-gnome-cba28584796e0ca1e2587c7697d4ea7aedeaf28b.zip |
- Fix install from non-root
- Simplify installation
- Switch to USES=tar
- Add NO_ARCH
Diffstat (limited to 'chinese/ttf2pt1')
-rw-r--r-- | chinese/ttf2pt1/Makefile | 7 | ||||
-rw-r--r-- | chinese/ttf2pt1/files/patch-Makefile | 18 |
2 files changed, 6 insertions, 19 deletions
diff --git a/chinese/ttf2pt1/Makefile b/chinese/ttf2pt1/Makefile index b0462f1efad5..c66355047dca 100644 --- a/chinese/ttf2pt1/Makefile +++ b/chinese/ttf2pt1/Makefile @@ -6,15 +6,20 @@ PORTVERSION= 3.4.0 CATEGORIES= chinese print MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-chinese/${PORTVERSION} DISTNAME= ${PORTNAME}-chinese-${PORTVERSION} -EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= True Type Font to Postscript Type 1 converter with Chinese maps RUN_DEPENDS= ttf2pt1:${PORTSDIR}/print/ttf2pt1 +USES= tar:tgz MAKE_ARGS= INSTDIR="${PREFIX}" NO_BUILD= yes +NO_ARCH= yes + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/maps + ${INSTALL_DATA} ${WRKSRC}/*.map ${STAGEDIR}${DATADIR}/maps/ .include <bsd.port.mk> diff --git a/chinese/ttf2pt1/files/patch-Makefile b/chinese/ttf2pt1/files/patch-Makefile deleted file mode 100644 index db9fbc8d210a..000000000000 --- a/chinese/ttf2pt1/files/patch-Makefile +++ /dev/null @@ -1,18 +0,0 @@ ---- Makefile.orig 2014-01-09 15:01:13.000000000 +0800 -+++ Makefile 2014-01-09 15:02:05.000000000 +0800 -@@ -22,10 +22,11 @@ snapshot: - ./mkrel snapshot - - install: -- cp -p *.map $(SHAREDIR)/maps -- chown $(OWNER) $(SHAREDIR)/maps/*.map -- chgrp $(GROUP) $(SHAREDIR)/maps/*.map -- chmod 0644 $(SHAREDIR)/maps/*.map -+ mkdir -p $(DESTDIR)$(SHAREDIR)/maps -+ cp -p *.map $(DESTDIR)$(SHAREDIR)/maps -+ chown $(OWNER) $(DESTDIR)$(SHAREDIR)/maps/*.map -+ chgrp $(GROUP) $(DESTDIR)$(SHAREDIR)/maps/*.map -+ chmod 0644 $(DESTDIR)$(SHAREDIR)/maps/*.map - - uninstall: - for i in *.map; do rm -f $(SHAREDIR)/maps/$$i || exit 1; done |