aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-01-03 01:48:16 +0800
committerijliao <ijliao@FreeBSD.org>2003-01-03 01:48:16 +0800
commit979f9ca34f8c89c282e0aa03595d97ea1db9e523 (patch)
tree1fd8cf39b6a483e05f95e6f33c28637232bcc4fa /japanese
parent6d02dbd69d399790139f617c4c162e08536f6a53 (diff)
downloadfreebsd-ports-gnome-979f9ca34f8c89c282e0aa03595d97ea1db9e523.tar.gz
freebsd-ports-gnome-979f9ca34f8c89c282e0aa03595d97ea1db9e523.tar.zst
freebsd-ports-gnome-979f9ca34f8c89c282e0aa03595d97ea1db9e523.zip
upgrade to 2.54p1
PR: 45856 Submitted by: Ports Fury
Diffstat (limited to 'japanese')
-rw-r--r--japanese/plain2/Makefile33
-rw-r--r--japanese/plain2/distinfo3
-rw-r--r--japanese/plain2/files/patch-aa39
-rw-r--r--japanese/plain2/files/patch-ab11
-rw-r--r--japanese/plain2/pkg-plist14
5 files changed, 31 insertions, 69 deletions
diff --git a/japanese/plain2/Makefile b/japanese/plain2/Makefile
index a45d187db8e0..536924d59582 100644
--- a/japanese/plain2/Makefile
+++ b/japanese/plain2/Makefile
@@ -6,20 +6,31 @@
#
PORTNAME= plain2
-PORTVERSION= 2.54
+PORTVERSION= 2.54.1
CATEGORIES= japanese textproc
-MASTER_SITES= ftp://ftp.nec.co.jp/pub/packages/plain2/
+MASTER_SITES= http://ftp.debian.or.jp/debian-jp/pool/main/p/plain2/
+DISTNAME= ${PORTNAME}_${PORTVERSION:R}p${PORTVERSION:E}.orig
-MAINTAINER= ports@freebsd.org
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= ${PORTNAME}_${PORTVERSION:R}p${PORTVERSION:E}-4.1.diff.gz
+PATCH_DIST_STRIP= -p1
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
-ALL_TARGET= plain2
+MAINTAINER= ports@FreeBSD.org
-# Some hint for incorporating unofficial HTML support patch.
-# Currently it is not supported.
-#PATCH_SITES= http://shika.aist-nara.ac.jp/products/DEST/plain2/
-#PATCHFILES= plain2-2.53-html.94aug14.patch.gz
-#RUN_DEPENDS+= tcsh:${PORTSDIR}/shells/tcsh
-#PATCH_DIST_STRIP= -p2 -F 3
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}p${PORTVERSION:E}.orig
+BUILD_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}p${PORTVERSION:E}.orig/src
+
+USE_REINPLACE= yes
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DBSD -DKANJI -DPICTURE -DHTML"
+ALL_TARGET= ${PORTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/lib/plain2|${DATADIR}|g' ${BUILD_WRKSRC}/plain2.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/*.p2 ${DATADIR}
.include <bsd.port.mk>
diff --git a/japanese/plain2/distinfo b/japanese/plain2/distinfo
index 6c7713a89506..efe841a6a2d3 100644
--- a/japanese/plain2/distinfo
+++ b/japanese/plain2/distinfo
@@ -1 +1,2 @@
-MD5 (plain2-2.54.tar.gz) = fac1118541ba8e439b72a3a38061c46c
+MD5 (plain2_2.54p1.orig.tar.gz) = de64fb22d007017a3f891bc0882ea2da
+MD5 (plain2_2.54p1-4.1.diff.gz) = 793c95d1819318b00d1ec23cfb6cde3c
diff --git a/japanese/plain2/files/patch-aa b/japanese/plain2/files/patch-aa
deleted file mode 100644
index a7e09379fea6..000000000000
--- a/japanese/plain2/files/patch-aa
+++ /dev/null
@@ -1,39 +0,0 @@
---- Makefile.orig Tue Apr 19 19:35:38 1994
-+++ Makefile Wed Aug 13 00:20:49 1997
-@@ -5,8 +5,8 @@
- # Makefile for plain2 1993 by A.Uchida
- #
- #
--BINDIR=/usr/local/bin
--LIBDIR=/usr/local/lib/plain2
-+BINDIR=${PREFIX}/bin
-+LIBDIR=${PREFIX}/lib/plain2
-
- SHELL=/bin/sh
-
-@@ -15,8 +15,8 @@
- #CC=gcc
- #CFLAGS= -fwritable-strings ${DEFINES} -DBSD -DDEBUG
-
--CC=cc
--CFLAGS= -O ${DEFINES} -DBSD -DDEBUG
-+CC=cc
-+CFLAGS= -O ${DEFINES} -DBSD -DDEBUG -fwritable-strings
- #CFLAGS= -g ${DEFINES} -DDEBUG
-
- SRCS=plain2.c readfile.c analyze.c miscutil.c\
-@@ -46,8 +46,12 @@
- etags ${SRCS}
-
- install:
-- install -s plain2 ${BINDIR}
-- cp ../lib/*.p2 ${LIBDIR}
-+ install -c -s -o bin -g bin -m 555 plain2 ${BINDIR}
-+ [ -d ${LIBDIR} ] || mkdir ${LIBDIR}
-+ install -c -o bin -g bin -m 444 ../lib/*.p2 ${LIBDIR}
-+# hint for unofficial html patch
-+# install -c -o bin -g bin -m 555 plain2html ${BINDIR}
-+# install -c -o bin -g bin -m 444 pt2htcol.awk ${LIBDIR}
-
- clean:
- rm -f plain2 *.o asccvt x.c error.LINT
diff --git a/japanese/plain2/files/patch-ab b/japanese/plain2/files/patch-ab
deleted file mode 100644
index e69fa0a766a8..000000000000
--- a/japanese/plain2/files/patch-ab
+++ /dev/null
@@ -1,11 +0,0 @@
---- headfoot.c- Tue Apr 19 19:16:22 1994
-+++ headfoot.c Sun Apr 20 18:52:25 1997
-@@ -290,7 +290,7 @@
- {
- char left[HF_MAXLEN];
- char right[HF_MAXLEN];
-- char ret[64];
-+ static char ret[64];
- if (build(pat1, pat2, left, right)) {
- (void)strcpy(ret, codeCvt(textQuote(left, roffTransQ)));
- (void)strcat(ret, "\\\\\\\\nP");
diff --git a/japanese/plain2/pkg-plist b/japanese/plain2/pkg-plist
index e4fca3b54a36..2a27e1a2ac67 100644
--- a/japanese/plain2/pkg-plist
+++ b/japanese/plain2/pkg-plist
@@ -1,8 +1,8 @@
bin/plain2
-lib/plain2/OHP.p2
-lib/plain2/OHP_t.p2
-lib/plain2/header.p2
-lib/plain2/header_t.p2
-lib/plain2/jbook.p2
-lib/plain2/supsnum.p2
-@dirrm lib/plain2
+share/plain2/OHP.p2
+share/plain2/OHP_t.p2
+share/plain2/header.p2
+share/plain2/header_t.p2
+share/plain2/jbook.p2
+share/plain2/supsnum.p2
+@dirrm share/plain2