diff options
Diffstat (limited to 'java/eclipse-langpack')
-rw-r--r-- | java/eclipse-langpack/Makefile | 2 | ||||
-rw-r--r-- | java/eclipse-langpack/files/install.sh | 10 |
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 |