diff options
author | gahr <gahr@FreeBSD.org> | 2013-11-13 18:57:19 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-11-13 18:57:19 +0800 |
commit | 1fcec40f6de5841fea1ba61b1634f8c3082a3119 (patch) | |
tree | 6bd5a7b1178a6e15432192b090b6746c43c43957 /print | |
parent | 6a08b50f6a94667664068cb7e63a515b4d644cf0 (diff) | |
download | freebsd-ports-gnome-1fcec40f6de5841fea1ba61b1634f8c3082a3119.tar.gz freebsd-ports-gnome-1fcec40f6de5841fea1ba61b1634f8c3082a3119.tar.zst freebsd-ports-gnome-1fcec40f6de5841fea1ba61b1634f8c3082a3119.zip |
- Convert to USES+=tk
- STAGE-clean
Diffstat (limited to 'print')
-rw-r--r-- | print/xtexsh/Makefile | 38 | ||||
-rw-r--r-- | print/xtexsh/pkg-plist | 4 |
2 files changed, 21 insertions, 21 deletions
diff --git a/print/xtexsh/Makefile b/print/xtexsh/Makefile index 16a4b68527e8..f87bfa2b9c02 100644 --- a/print/xtexsh/Makefile +++ b/print/xtexsh/Makefile @@ -14,39 +14,41 @@ COMMENT= Tcl/Tk-based simple TeX interface LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual +OPTIONS_DEFINE= DOCS + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} NO_BUILD= yes USE_TEX= latex -USE_TK_WRAPPER= yes +USES+= tk desktop-file-utils INSTALLS_ICONS= yes -MAN1= xtexsh.1 -MANCOMPRESSED= yes +PORTDOCS= * + +.include <bsd.port.options.mk> -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e \ - 's|/usr/bin|${LOCALBASE}/bin|g ; \ + 's|/usr/bin/wish|${WISH}|g ; \ s|"/etc|"${PREFIX}/etc| ; \ s|exec bash|exec sh|' ${WRKSRC}/xtexsh do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${MANPREFIX}/man/man1 - ${INSTALL_DATA} ${WRKSRC}/xtexshrc ${PREFIX}/etc - ${INSTALL_DATA} ${WRKSRC}/xtexsh.desktop ${PREFIX}/share/applications - @${MKDIR} ${PREFIX}/share/icons/locolor/16x16/apps + ${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/xtexshrc ${STAGEDIR}${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/xtexsh.desktop ${STAGEDIR}${PREFIX}/share/applications + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/locolor/16x16/apps ${INSTALL_DATA} ${WRKSRC}/xtexsh-mini.png \ - ${PREFIX}/share/icons/locolor/16x16/apps/xtexsh.png - @${MKDIR} ${PREFIX}/share/icons/locolor/32x32/apps + ${STAGEDIR}${PREFIX}/share/icons/locolor/16x16/apps/xtexsh.png + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/locolor/32x32/apps ${INSTALL_DATA} ${WRKSRC}/xtexsh.png \ - ${PREFIX}/share/icons/locolor/32x32/apps/xtexsh.png - ${INSTALL_DATA} ${WRKSRC}/xtexsh.png ${PREFIX}/share/pixmaps + ${STAGEDIR}${PREFIX}/share/icons/locolor/32x32/apps/xtexsh.png + ${INSTALL_DATA} ${WRKSRC}/xtexsh.png ${STAGEDIR}${PREFIX}/share/pixmaps -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/index.html ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/print/xtexsh/pkg-plist b/print/xtexsh/pkg-plist index e6aaeca81c41..a7405f0e75c6 100644 --- a/print/xtexsh/pkg-plist +++ b/print/xtexsh/pkg-plist @@ -1,7 +1,6 @@ bin/xtexsh etc/xtexshrc -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/index.html +man/man1/xtexsh.1.gz share/applications/xtexsh.desktop share/icons/locolor/16x16/apps/xtexsh.png share/icons/locolor/32x32/apps/xtexsh.png @@ -12,4 +11,3 @@ share/pixmaps/xtexsh.png @dirrmtry share/icons/locolor/16x16 @dirrmtry share/icons/locolor @dirrmtry share/icons -%%PORTDOCS%%@dirrm %%DOCSDIR%% |