ports/186800: [maintainer-update] Convert cad/gspiceui to STAGE
Kevin Zheng
kevinz5000 at gmail.com
Sat Feb 15 21:00:01 UTC 2014
>Number: 186800
>Category: ports
>Synopsis: [maintainer-update] Convert cad/gspiceui to STAGE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 15 21:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Kevin Zheng
>Release: 10.0-RELEASE
>Organization:
>Environment:
FreeBSD foxtrot.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Convert cad/gspiceui to STAGE support. Meanwhile, define LICENSE_FILE and switch to USES.
>How-To-Repeat:
>Fix:
Apply the attached patch.
Patch attached with submission follows:
diff --git a/cad/gspiceui/Makefile b/cad/gspiceui/Makefile
index 8280246..9a058cd0 100644
--- a/cad/gspiceui/Makefile
+++ b/cad/gspiceui/Makefile
@@ -12,6 +12,7 @@ MAINTAINER= kevinz5000 at gmail.com
COMMENT= GUI frontend to gnucap and ngspice circuit simulators
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/License
RUN_DEPENDS= # none if no options are set
@@ -28,18 +29,17 @@ OPTIONS_DEFAULT= NGSPICE
USE_WX= 2.6+
WX_UNICODE= yes
USE_GCC= yes
-USE_GMAKE= yes
+USES= gmake
DESKTOP_ENTRIES= "GSpiceUI" "Circuit Simulator GUI" \
"${PREFIX}/share/pixmaps/gspiceui-48x48.xpm" \
"gspiceui" "Science;Electronics;" false
-MAN1= gspiceui.1
PORTDOCS= *
PORTEXAMPLES= *
-PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm
+PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \
+ man/man1/gspiceui.1.gz
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUCAP}
@@ -61,21 +61,21 @@ post-patch:
${WRKSRC}/src/main/HelpTasks.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/src/icons/gspiceui-48x48.xpm \
- ${PREFIX}/share/pixmaps
- ${INSTALL_MAN} ${WRKSRC}/gspiceui.1 ${MANPREFIX}/man/man1
+ ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_MAN} ${WRKSRC}/gspiceui.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for dir in html
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${DOCSDIR} \
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DOCSDIR} \
"! -name Makefile")
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for dir in lib sch
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${EXAMPLESDIR} \
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${EXAMPLESDIR} \
"! -name Makefile")
.endfor
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list