aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-09-29 17:38:57 +0800
committermadpilot <madpilot@FreeBSD.org>2013-09-29 17:38:57 +0800
commitf6b260d1ba8a07773c7fd81b459cba16ba16a1b1 (patch)
tree873ea15d35b093b6d542ae621b2ded0e4d3c64c5 /net
parentfc4b63e1d25ba3038c1d474a76abd20fc6aaba92 (diff)
downloadfreebsd-ports-gnome-f6b260d1ba8a07773c7fd81b459cba16ba16a1b1.tar.gz
freebsd-ports-gnome-f6b260d1ba8a07773c7fd81b459cba16ba16a1b1.tar.zst
freebsd-ports-gnome-f6b260d1ba8a07773c7fd81b459cba16ba16a1b1.zip
Convert unison ports to staging
Approved by: bsam (for net/unison-nox11) Approved by: mandree (implicit, for net/unison232)
Diffstat (limited to 'net')
-rw-r--r--net/unison-devel/Makefile25
-rw-r--r--net/unison-nox11/Makefile1
-rw-r--r--net/unison/Makefile23
-rw-r--r--net/unison232/Makefile21
4 files changed, 28 insertions, 42 deletions
diff --git a/net/unison-devel/Makefile b/net/unison-devel/Makefile
index 2e7e212bc6f5..da8e0ccaad98 100644
--- a/net/unison-devel/Makefile
+++ b/net/unison-devel/Makefile
@@ -28,7 +28,6 @@ OPTIONS_DEFAULT= DOCS X11
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= unison all
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@@ -54,6 +53,7 @@ MAKE_ARGS+= UISTYLE=text
PLIST_SUB+= TEXT="@comment "
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
PATCH_DEPENDS+= ${BUILD_DEPENDS}
+PKGMESSAGE= ${PKGDIR}/pkg-message.nox11
.endif
.if ${PORT_OPTIONS:MX11}
@@ -69,26 +69,21 @@ post-build:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/unison ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/unison ${STAGEDIR}${PREFIX}/bin
post-install:
.if ${PORT_OPTIONS:MX11}
- @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
- cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${STAGEDIR}${PREFIX}/bin
.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MX11}
- @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
- @${MKDIR} ${DESKTOPDIR}
- @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@-update-desktop-database > /dev/null
- @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
- @${CAT} ${PKGMESSAGE}
-.else
- @${CAT} ${PKGMESSAGE}.nox11
+ @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.endif
.include <bsd.port.mk>
diff --git a/net/unison-nox11/Makefile b/net/unison-nox11/Makefile
index 04f97f5e165e..4608133ecb3f 100644
--- a/net/unison-nox11/Makefile
+++ b/net/unison-nox11/Makefile
@@ -13,5 +13,4 @@ OPTIONS_EXCLUDE= X11
OPTIONS_DEFAULT= DOCS
MASTERDIR= ${.CURDIR}/../unison
-NO_STAGE= yes
.include "${MASTERDIR}/Makefile"
diff --git a/net/unison/Makefile b/net/unison/Makefile
index c507b3427429..91083b37d87d 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -27,7 +27,6 @@ ALL_TARGET= unison all
OPTIONS_DEFINE= DOCS X11
OPTIONS_DEFAULT?= DOCS X11
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@@ -53,6 +52,7 @@ MAKE_ARGS+= UISTYLE=text
PLIST_SUB+= TEXT="@comment "
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
PATCH_DEPENDS+= ${BUILD_DEPENDS}
+PKGMESSAGE= ${PKGDIR}/pkg-message.nox11
.endif
.if ${PORT_OPTIONS:MX11}
@@ -68,23 +68,18 @@ post-build:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/unison ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/unison ${STAGEDIR}${PREFIX}/bin
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
- cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MX11}
- @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
- @${MKDIR} ${DESKTOPDIR}
- @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@-update-desktop-database > /dev/null
- @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
- @${CAT} ${PKGMESSAGE}
-.else
- @${CAT} ${PKGMESSAGE}.nox11
+ @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.endif
.include <bsd.port.mk>
diff --git a/net/unison232/Makefile b/net/unison232/Makefile
index adcc53edd841..76cf6f4fecd9 100644
--- a/net/unison232/Makefile
+++ b/net/unison232/Makefile
@@ -18,7 +18,7 @@ COMMENT= User-level file synchronization tool
LICENSE= GPLv3
PLIST_SUB= PORTVERSION=${PORTVERSION}
-USE_GMAKE= yes
+USES= gmake
WANT_GNOME= yes
MAKE_ARGS= CFLAGS=""
@@ -27,7 +27,6 @@ MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS X11
OPTIONS_DEFAULT= DOCS X11
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@@ -69,20 +68,18 @@ post-build:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
- cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MX11}
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-text ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}-text
- ${MKDIR} ${DESKTOPDIR}
- ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}/${PORTNAME}${PKGNAMESUFFIX}.desktop
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-text ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}-text
+ ${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}${PKGNAMESUFFIX}.desktop
-update-desktop-database > /dev/null
- @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${PREFIX}/share/pixmaps/${PORTNAME}${PKGNAMESUFFIX}.png
+ @${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}${PKGNAMESUFFIX}.png
.endif
.include <bsd.port.mk>