aboutsummaryrefslogtreecommitdiffstats
path: root/net/grsync
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2013-11-21 21:26:40 +0800
committermartymac <martymac@FreeBSD.org>2013-11-21 21:26:40 +0800
commit16268b5f508ee90e3c42744e3b728ec6c34ba931 (patch)
treed029002526b6055c4abb4426c6136704af177d10 /net/grsync
parenta1dbad6d3268dcc45b5124e62bbdf5ee1707bcb4 (diff)
downloadfreebsd-ports-gnome-16268b5f508ee90e3c42744e3b728ec6c34ba931.tar.gz
freebsd-ports-gnome-16268b5f508ee90e3c42744e3b728ec6c34ba931.tar.zst
freebsd-ports-gnome-16268b5f508ee90e3c42744e3b728ec6c34ba931.zip
- Enable staging
- Fix shebang of grsync-batch using shebangfix - Use new OPTIONS framework - Rework pkg-descr
Diffstat (limited to 'net/grsync')
-rw-r--r--net/grsync/Makefile19
-rw-r--r--net/grsync/pkg-descr4
-rw-r--r--net/grsync/pkg-plist2
3 files changed, 10 insertions, 15 deletions
diff --git a/net/grsync/Makefile b/net/grsync/Makefile
index a19743caecf2..8fe809ad1206 100644
--- a/net/grsync/Makefile
+++ b/net/grsync/Makefile
@@ -3,6 +3,7 @@
PORTNAME= grsync
PORTVERSION= 1.2.4
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.opbyte.it/release/ \
LOCAL/martymac
@@ -16,7 +17,8 @@ RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync \
bash:${PORTSDIR}/shells/bash
USE_GNOME= gtk20
-USES= desktop-file-utils gmake shared-mime-info pkgconfig
+USES= desktop-file-utils gmake shared-mime-info pkgconfig shebangfix
+SHEBANG_FILES= src/grsync-batch
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-unity
@@ -25,21 +27,14 @@ INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-MAN1= grsync.1 grsync-batch.1
+OPTIONS_DEFINE= NLS
+OPTIONS_DEFAULT= NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
-NO_STAGE= yes
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
-
post-patch:
- @${REINPLACE_CMD} 's|/bin/bash|${LOCALBASE}/bin/bash|' \
- ${WRKSRC}/src/grsync-batch
.if empty(PORT_OPTIONS:MNLS)
@${REINPLACE_CMD} 's/^ALL_LINGUAS=.*/ALL_LINGUAS=""/' \
${WRKSRC}/configure
diff --git a/net/grsync/pkg-descr b/net/grsync/pkg-descr
index de7903a88fb7..860e3839afdc 100644
--- a/net/grsync/pkg-descr
+++ b/net/grsync/pkg-descr
@@ -2,8 +2,6 @@ Grsync is a GUI (Graphical User Interface) for rsync, the commandline directory
synchronization tool. It makes use of the GTK libraries and is released under
the GPL license, so it is opensource. It doesn't support all of rsync features,
but can be effectively used to synchronize local directories and supports
-remote targets in a limited way (read: manual). For example some people use
-grsync to synchronize their music collection with removable devices or to
-backup personal files to a networked drive.
+remote targets in a limited way (read: manual).
WWW: http://www.opbyte.it/grsync
diff --git a/net/grsync/pkg-plist b/net/grsync/pkg-plist
index c48174de175c..12c6849f8a90 100644
--- a/net/grsync/pkg-plist
+++ b/net/grsync/pkg-plist
@@ -1,5 +1,7 @@
bin/grsync
bin/grsync-batch
+man/man1/grsync-batch.1.gz
+man/man1/grsync.1.gz
%%DATADIR%%/grsync.glade
share/applications/grsync.desktop
share/icons/hicolor/48x48/mimetypes/application-x-grsync-session.png