diff options
author | tobik <tobik@FreeBSD.org> | 2019-02-02 16:04:11 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2019-02-02 16:04:11 +0800 |
commit | c33616f6c463fc0739313d32f536588d2d23af41 (patch) | |
tree | 300949a4f097376e238f3dc9051da10d55660ec8 | |
parent | 33a1341f970543ca799a0431afacbd32ada11c14 (diff) | |
download | freebsd-ports-gnome-c33616f6c463fc0739313d32f536588d2d23af41.tar.gz freebsd-ports-gnome-c33616f6c463fc0739313d32f536588d2d23af41.tar.zst freebsd-ports-gnome-c33616f6c463fc0739313d32f536588d2d23af41.zip |
textproc/s5: Use SUB_FILES too
-rw-r--r-- | textproc/s5/Makefile | 4 | ||||
-rw-r--r-- | textproc/s5/files/s5.1.in (renamed from textproc/s5/files/s5.1) | 2 | ||||
-rw-r--r-- | textproc/s5/files/s5.in (renamed from textproc/s5/files/s5.sh) | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/textproc/s5/Makefile b/textproc/s5/Makefile index 90dc896148c0..929723011905 100644 --- a/textproc/s5/Makefile +++ b/textproc/s5/Makefile @@ -21,13 +21,13 @@ NO_ARCH= yes NO_BUILD= yes NO_WRKSUBDIR= yes +SUB_FILES= s5 s5.1 + S5_DIR= ${PREFIX}/share/${PORTNAME} S5_SUBDIRS= pix primer s5-blank ui post-extract: @cd ${WRKSRC} && ${TAR} -xf s5-blank.zip - @${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.sh > ${WRKDIR}/s5 - @${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.1 > ${WRKDIR}/s5.1 @${FIND} ${WRKSRC} -type f -name .DS_Store -delete do-install: diff --git a/textproc/s5/files/s5.1 b/textproc/s5/files/s5.1.in index e9d8d518b499..ebe9b1ee1a96 100644 --- a/textproc/s5/files/s5.1 +++ b/textproc/s5/files/s5.1.in @@ -72,7 +72,7 @@ Display a short help text and exit. No-operation mode; just display the commands without executing them. .It Fl T Ar template Specify the template directory instead of the default -.Pa /usr/local/share/s5/s5-blank +.Pa %%PREFIX%%/share/s5/s5-blank .It Fl v Verbose operation; display diagnostic information. .El diff --git a/textproc/s5/files/s5.sh b/textproc/s5/files/s5.in index 07dd478f5323..eac7beabc58e 100644 --- a/textproc/s5/files/s5.sh +++ b/textproc/s5/files/s5.in @@ -26,7 +26,7 @@ set -e -LOCALBASE='/usr/local' +LOCALBASE='%%PREFIX%%' S5_DIR="${LOCALBASE}/share/s5" S5_TEMPLATE="${S5_DIR}/s5-blank" NOOP='' @@ -217,7 +217,7 @@ Usage: s5 [-hNv] [-T template] command [args...] The available command-line options are: -h display this help message and exit -N no-op mode, just display the commands without executing them - -T template directory, default /usr/local/share/s5/s5-blank + -T template directory, default %%PREFIX%%/share/s5/s5-blank -v verbose operation, display diagnostic information The available commands are: |