diff options
author | olivierd <olivierd@FreeBSD.org> | 2012-08-10 01:43:27 +0800 |
---|---|---|
committer | olivierd <olivierd@FreeBSD.org> | 2012-08-10 01:43:27 +0800 |
commit | 488be812327aaf49c9021c87c0190efadb9c8836 (patch) | |
tree | 86d8dc58c2ba69f0b91088e237af526d82f0ccbe /sysutils | |
parent | 01cd15ca09482744b3ddd0379e8628c67076bf6d (diff) | |
download | freebsd-ports-gnome-488be812327aaf49c9021c87c0190efadb9c8836.tar.gz freebsd-ports-gnome-488be812327aaf49c9021c87c0190efadb9c8836.tar.zst freebsd-ports-gnome-488be812327aaf49c9021c87c0190efadb9c8836.zip |
- Update to 1.2.0
- Convert to new framework OptionsNG
- Use USE_PKGCONFIG
- Add patch when NLS is disabled
PR: 169894
Submitted by: by myself
Approved by: miwi, rene (mentors), maintainer (timeout > 2 weeks)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xfce4-netload-plugin/Makefile | 22 | ||||
-rw-r--r-- | sysutils/xfce4-netload-plugin/distinfo | 4 | ||||
-rw-r--r-- | sysutils/xfce4-netload-plugin/pkg-plist | 2 |
3 files changed, 16 insertions, 12 deletions
diff --git a/sysutils/xfce4-netload-plugin/Makefile b/sysutils/xfce4-netload-plugin/Makefile index 36b4de9534c3..38b609ed5cfb 100644 --- a/sysutils/xfce4-netload-plugin/Makefile +++ b/sysutils/xfce4-netload-plugin/Makefile @@ -6,28 +6,28 @@ # PORTNAME= xfce4-netload-plugin -PORTVERSION= 1.1.0 -PORTREVISION= 2 +PORTVERSION= 1.2.0 CATEGORIES= sysutils xfce MASTER_SITES= ${MASTER_SITE_XFCE} MASTER_SITE_SUBDIR= src/panel-plugins/${PORTNAME}/${PORTVERSION:R} DIST_SUBDIR= xfce4 MAINTAINER= demon@FreeBSD.org -COMMENT= Network Load plugin for XFce4 +COMMENT= Network Load plugin for Xfce4 GNU_CONFIGURE= yes USE_BZIP2= yes USE_GMAKE= yes -USE_GNOME= gnomehack intltool intlhack pkgconfig +USE_GNOME= gnomehack intltool intlhack USE_XFCE= configenv libmenu panel INSTALLS_ICONS= yes +USE_PKGCONFIG= build -OPTIONS= NLS "Enable Native Language Support" on +OPTIONS_DEFINE= NLS -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes CONFIGURE_ARGS+=--enable-nls PLIST_SUB+= NLS="" @@ -37,11 +37,13 @@ PLIST_SUB+= NLS="@comment " .endif do-patch: - @${REINPLACE_CMD} -e 's|# include <net/if_ppp.h>||' \ - ${WRKSRC}/panel-plugin/os.h @${REINPLACE_CMD} -e 's, || __FreeBSD_kernel__,,' \ ${WRKSRC}/panel-plugin/net.c \ ${WRKSRC}/panel-plugin/net.h \ ${WRKSRC}/panel-plugin/os.h -.include <bsd.port.post.mk> +.if empty(PORT_OPTIONS:MNLS) + @${REINPLACE_CMD} -e 's|po ||' ${WRKSRC}/Makefile.in +.endif + +.include <bsd.port.mk> diff --git a/sysutils/xfce4-netload-plugin/distinfo b/sysutils/xfce4-netload-plugin/distinfo index 08cc3d8f4614..f678081f52cb 100644 --- a/sysutils/xfce4-netload-plugin/distinfo +++ b/sysutils/xfce4-netload-plugin/distinfo @@ -1,2 +1,2 @@ -SHA256 (xfce4/xfce4-netload-plugin-1.1.0.tar.bz2) = 8a33dfed24a7bbd8eaf333524f94eb24e7d3a14ffccb181e5cab1d1b05ae3bf7 -SIZE (xfce4/xfce4-netload-plugin-1.1.0.tar.bz2) = 160212 +SHA256 (xfce4/xfce4-netload-plugin-1.2.0.tar.bz2) = c824f09e2d3860011b44d8272d661c458237786828027f3d9ad6a1d4f0096845 +SIZE (xfce4/xfce4-netload-plugin-1.2.0.tar.bz2) = 169721 diff --git a/sysutils/xfce4-netload-plugin/pkg-plist b/sysutils/xfce4-netload-plugin/pkg-plist index a11e2e42d75c..1b71a2097a37 100644 --- a/sysutils/xfce4-netload-plugin/pkg-plist +++ b/sysutils/xfce4-netload-plugin/pkg-plist @@ -2,6 +2,7 @@ libexec/xfce4/panel-plugins/xfce4-netload-plugin share/icons/hicolor/24x24/apps/xfce4-netload-plugin.png share/icons/hicolor/48x48/apps/xfce4-netload-plugin.png share/icons/hicolor/scalable/apps/xfce4-netload-plugin.svg +%%NLS%%share/locale/ar/LC_MESSAGES/xfce4-netload-plugin.mo %%NLS%%share/locale/ast/LC_MESSAGES/xfce4-netload-plugin.mo %%NLS%%share/locale/ca/LC_MESSAGES/xfce4-netload-plugin.mo %%NLS%%share/locale/cs/LC_MESSAGES/xfce4-netload-plugin.mo @@ -41,6 +42,7 @@ share/icons/hicolor/scalable/apps/xfce4-netload-plugin.svg %%NLS%%share/locale/ur_PK/LC_MESSAGES/xfce4-netload-plugin.mo %%NLS%%share/locale/vi/LC_MESSAGES/xfce4-netload-plugin.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/xfce4-netload-plugin.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/xfce4-netload-plugin.mo share/xfce4/panel-plugins/netload.desktop @dirrmtry share/xfce4/panel-plugins @dirrmtry share/xfce4 |