summaryrefslogtreecommitdiffstats
path: root/graphics/jgv
diff options
context:
space:
mode:
authorkiri <kiri@FreeBSD.org>2003-05-08 07:04:38 +0000
committerkiri <kiri@FreeBSD.org>2003-05-08 07:04:38 +0000
commit9b21eef9c9a3747a04244d7e3437f46a7f462d54 (patch)
tree309303f1902a2afca6c6b4d267fc9c540bc5871b /graphics/jgv
parentbb1cd230ac01108b51337a595df9c0d8c58082b2 (diff)
downloadFreeBSD-ports-9b21eef9c9a3747a04244d7e3437f46a7f462d54.zip
FreeBSD-ports-9b21eef9c9a3747a04244d7e3437f46a7f462d54.tar.gz
Set MASTER_SITES fetchable and correct reinplace commands.
Diffstat (limited to 'graphics/jgv')
-rw-r--r--graphics/jgv/Makefile12
-rw-r--r--graphics/jgv/pkg-descr2
-rw-r--r--graphics/jgv/pkg-plist1
-rw-r--r--graphics/jgv/scripts/post-install12
4 files changed, 16 insertions, 11 deletions
diff --git a/graphics/jgv/Makefile b/graphics/jgv/Makefile
index 44ea9c0..655d3ad 100644
--- a/graphics/jgv/Makefile
+++ b/graphics/jgv/Makefile
@@ -8,20 +8,24 @@
PORTNAME= jgv
PORTVERSION= 0.2a
CATEGORIES+= ${CATEGORY_LIST}
-MASTER_SITES= http://www.aaa-int.or.jp/~jfactory/JDE/dist/
+MASTER_SITES= http://www.aaa-int.or.jp/~jfactory/JDE/dist/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= . kiri
DISTNAME= JGV-${PORTVERSION}
+EXTRACT_ONLY= # extracted directly in install target
-MAINTAINER= kiri@pis.toba-cmt.ac.jp
+MAINTAINER= kiri@FreeBSD.org
COMMENT= A graphic viewer with various image types
RUN_DEPENDS= ${RUN_DEP_LIST}
LIB_DEPENDS= ${LIB_DEP_LIST}
-EXTRACT_ONLY= # extracted directly in install target
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_X_PREFIX= yes
-SCRIPTS_ENV= LANG=C LN=${LN} PERL=${PERL} LANGUAGE=${LANGUAGE} VERSION=${TKSTEPVERSION}
+USE_REINPLACE= yes
+SCRIPTS_ENV= LANG=C LN=${LN} REINPLACE_CMD="${REINPLACE_CMD}" \
+ LANGUAGE=${LANGUAGE} VERSION=${TKSTEPVERSION}
PLIST_SUB= PIXMAP_PATH=${PIXMAPPATH:S@^${PREFIX}/@@}
# This port is for both graphics/jgv and japanese/jgv.
diff --git a/graphics/jgv/pkg-descr b/graphics/jgv/pkg-descr
index ffaf359..f5d64c5 100644
--- a/graphics/jgv/pkg-descr
+++ b/graphics/jgv/pkg-descr
@@ -10,4 +10,4 @@ Note that both graphics/jgv and japanese/jgv are mutually exclusive and
SHOULD NOT BE INSTALLED SIMULTANEOUSLY!
-KIRIYAMA Kazuhiko
-<kiri@pis.toba-cmt.ac.jp>
+<kiri@FreeBSD.org>
diff --git a/graphics/jgv/pkg-plist b/graphics/jgv/pkg-plist
index 733e51c..e0040b8 100644
--- a/graphics/jgv/pkg-plist
+++ b/graphics/jgv/pkg-plist
@@ -26,3 +26,4 @@ bin/JGV.app
@dirrm JDE/JGV/menu
@dirrm JDE/JGV/modules
@dirrm JDE/JGV
+@unexec rmdir %D/JDE 2>/dev/null || true
diff --git a/graphics/jgv/scripts/post-install b/graphics/jgv/scripts/post-install
index a20f4d8..6440c56 100644
--- a/graphics/jgv/scripts/post-install
+++ b/graphics/jgv/scripts/post-install
@@ -5,9 +5,9 @@ installdir=${PREFIX}/JDE/JGV; export installdir
case ${LANGUAGE} in
Japanese)
for f in JGV.app; do
- ${PERL} -pi -e '
- s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
- ' ${installdir}/bin/${f}
+ ${REINPLACE_CMD} -E -e \
+ "s/^(exec[[:space:]]+)wishstep[[:space:]]*([[:space:]]+.*)\$/\1wishstep${VERSION}jp\2/" \
+ ${installdir}/bin/${f}
done
;;
*)
@@ -22,9 +22,9 @@ for f in JGV JGV.app; do
target=${installdir}/defaults/${f}
;;
esac
- ${PERL} -pi -e '
- s/^([ \t]*set[ \t]+Jlib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
- ' ${target}
+ ${REINPLACE_CMD} -E -e \
+ "s@^([[:space:]]*set[[:space:]]+Jlib[[:space:]]+)\"[^\"]*\"\$@\1\"${installdir}/\"@" \
+ ${target}
done
${LN} -sf ${installdir}/bin/JGV.app ${PREFIX}/bin
OpenPOWER on IntegriCloud