aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2004-01-18 04:31:28 +0800
committernork <nork@FreeBSD.org>2004-01-18 04:31:28 +0800
commit9f908cac64e3d0d180f3e690ca0fe7f71720d5cd (patch)
tree369d2b863f16f896f1594cd28e69853b8081f6d4 /java
parent81cceebca98206cc046754f9feb240fbfc3972d7 (diff)
downloadfreebsd-ports-gnome-9f908cac64e3d0d180f3e690ca0fe7f71720d5cd.tar.gz
freebsd-ports-gnome-9f908cac64e3d0d180f3e690ca0fe7f71720d5cd.tar.zst
freebsd-ports-gnome-9f908cac64e3d0d180f3e690ca0fe7f71720d5cd.zip
Fix install.
Requested by: many
Diffstat (limited to 'java')
-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