aboutsummaryrefslogtreecommitdiff
path: root/java/eclipse-langpack
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-01-17 20:31:28 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-01-17 20:31:28 +0000
commit58708c814757a9bdda9ff7e0b4793e3d70aa0730 (patch)
treef9e1c3979a56a67f04a0cc175303a29a4d8474d8 /java/eclipse-langpack
parent8dc6c581f127356ba1fddf5a18e821cffbf88567 (diff)
downloadports-58708c814757a9bdda9ff7e0b4793e3d70aa0730.tar.gz
ports-58708c814757a9bdda9ff7e0b4793e3d70aa0730.zip
Notes
Diffstat (limited to 'java/eclipse-langpack')
-rw-r--r--java/eclipse-langpack/Makefile2
-rw-r--r--java/eclipse-langpack/files/install.sh10
2 files changed, 9 insertions, 3 deletions
diff --git a/java/eclipse-langpack/Makefile b/java/eclipse-langpack/Makefile
index 45c9693fff78..38c87e636ce0 100644
--- a/java/eclipse-langpack/Makefile
+++ b/java/eclipse-langpack/Makefile
@@ -28,6 +28,6 @@ USE_ZIP= yes
NO_BUILD= yes
do-install:
- @${SH} ${FILESDIR}/install.sh ${WRKSRC} ${PREFIX} ${SHAREOWN} ${SHAREGRP} 0755 0644 ${PLIST}
+ @${SETENV} PLIST_SUB=${PLIST_SUB} ${SH} ${FILESDIR}/install.sh ${WRKSRC} ${PREFIX} ${SHAREOWN} ${SHAREGRP} 0755 0644 ${PLIST}
.include <bsd.port.mk>
diff --git a/java/eclipse-langpack/files/install.sh b/java/eclipse-langpack/files/install.sh
index bd762ff7a2a2..b84619bfe0dd 100644
--- a/java/eclipse-langpack/files/install.sh
+++ b/java/eclipse-langpack/files/install.sh
@@ -4,10 +4,16 @@ wrksrc=$1; prefix=$2
owner=$3; group=$4; dperm=$5; fperm=$6
plist=$7
-for dir in `sed -n "s|^@dirrm ||p" $plist | sort`; do
+for subr in ${PLIST_SUB}; do
+ plist_sub="${plist_sub} `echo $subr|sed 's/^\([^=][^=]*\)=\(.*\)$/-e s|%%\1%%|\2|g/'`"
+done
+
+sed $plist_sub ${plist} > ${wrksrc}/plist.tmp
+
+for dir in `sed -n "s|^@dirrm ||p" ${wrksrc}/plist.tmp | sort`; do
install -d -o ${owner} -g ${group} -m ${dperm} ${prefix}/$dir
done
-for file in `sed "/^@dirrm /d; s|^eclipse/||" $plist`; do
+for file in `sed "/^@dirrm /d; s|^eclipse/||" ${wrksrc}/plist.tmp`; do
install -c -o ${owner} -g ${group} -m ${fperm} ${wrksrc}/${file} ${prefix}/eclipse/${file}
done