1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

- Convert to USES+=tk

- Convert to new OPTIONS framework
- Get rid of pkg-plist
- Refactor a bit the Maekfile
This commit is contained in:
Pietro Cerutti 2013-09-24 07:02:20 +00:00
parent 179f67622a
commit 8d309dfdd5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328098
3 changed files with 19 additions and 30 deletions

View File

@ -8,23 +8,33 @@ CATEGORIES= audio tcl tk
MASTER_SITES= SF/${PORTNAME}/eTktab/${PORTVERSION} \
SF/${PORTNAME}/keyboard%20layout%20support/${PORTVERSION}:keyboard
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT
.if !defined(NOPORTDOCS)
DISTFILES+= canada_multi-3.2.etk:keyboard \
dvorak-3.2.etk:keyboard \
uk-3.2.etk:keyboard \
us-3.2.etk:keyboard
.endif
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Guitar tablature editor
OPTIONS_DEFINE= DOCS
USES+= tk
NO_BUILD= yes
NO_STAGE= yes
WRKSRC= ${WRKDIR}/eTktab-${PORTVERSION}
USE_TK_WRAPPER= yes
NO_STAGE= yes
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= canada_multi-3.2.etk:keyboard \
dvorak-3.2.etk:keyboard \
uk-3.2.etk:keyboard \
us-3.2.etk:keyboard
.endif
post-patch:
${REINPLACE_CMD} -e 's|wish8.4|${WISH}|g' ${WRKSRC}/eTktab
post-extract:
.for FILE in canada_multi-3.2.etk dvorak-3.2.etk uk-3.2.etk us-3.2.etk
@ -33,7 +43,7 @@ post-extract:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/eTktab ${PREFIX}/bin/etktab
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for FILE in CHANGES.html LICENSE.html README.html eTktab-small.xpm eTktab.xpm \
canada_multi-3.2.etk dvorak-3.2.etk uk-3.2.etk us-3.2.etk

View File

@ -1,10 +0,0 @@
--- eTktab Tue Jul 22 00:53:46 2003
+++ eTktab Mon Jul 28 23:44:45 2003
@@ -1,6 +1,6 @@
#!/bin/sh
# This line makes the next one a comment in Tcl \
-exec wish "$0" -- ${1+"$@"}
+exec wish8.4 "$0" -- ${1+"$@"}
# eTKTab by Jason Sonnenschein jes_jm@yahoo.com
# based on:

View File

@ -1,11 +0,0 @@
bin/etktab
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.html
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.html
%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/canada_multi-3.2.etk
%%PORTDOCS%%%%DOCSDIR%%/dvorak-3.2.etk
%%PORTDOCS%%%%DOCSDIR%%/eTktab-small.xpm
%%PORTDOCS%%%%DOCSDIR%%/eTktab.xpm
%%PORTDOCS%%%%DOCSDIR%%/uk-3.2.etk
%%PORTDOCS%%%%DOCSDIR%%/us-3.2.etk
%%PORTDOCS%%@dirrm %%DOCSDIR%%