summaryrefslogtreecommitdiff
path: root/misc/xdg-utils
diff options
context:
space:
mode:
authorwiz <wiz>2014-04-21 15:35:27 +0000
committerwiz <wiz>2014-04-21 15:35:27 +0000
commit7f6edf94ad11e3a60497dbfcdd569da9a3ad5671 (patch)
tree7846d7375cecb6117050aabab77d745fca78fa16 /misc/xdg-utils
parent73fc0684f9df8f2054c129d713d81e8110e6cc99 (diff)
downloadpkgsrc-7f6edf94ad11e3a60497dbfcdd569da9a3ad5671.tar.gz
Use GNU sed and bash to make these tools work a bit better.
This at least fixes xdg-screensaver. Bump PKGREVISION.
Diffstat (limited to 'misc/xdg-utils')
-rw-r--r--misc/xdg-utils/Makefile23
1 files changed, 20 insertions, 3 deletions
diff --git a/misc/xdg-utils/Makefile b/misc/xdg-utils/Makefile
index 6518d090f91..c78c82e6f73 100644
--- a/misc/xdg-utils/Makefile
+++ b/misc/xdg-utils/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2013/03/17 19:56:43 markd Exp $
-#
+# $NetBSD: Makefile,v 1.7 2014/04/21 15:35:27 wiz Exp $
DISTNAME= xdg-utils-1.1.0-rc1
-PKGNAME= xdg-utils-1.1.0rc1
+PKGNAME= ${DISTNAME:S/-rc/rc/}
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://portland.freedesktop.org/download/
@@ -13,5 +13,22 @@ LICENSE= mit
GNU_CONFIGURE= yes
USE_LANGUAGES= # none
+USE_TOOLS+= bash:run gsed:run
+
+SUBST_CLASSES+= gsed
+SUBST_FILES.gsed= scripts/xdg-*
+SUBST_STAGE.gsed= post-build
+SUBST_MESSAGE.gsed= Use GNU sed instead of sed.
+SUBST_SED.gsed+= -e "s/sed /gsed /g"
+
+# "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh
+REPLACE_BASH+= scripts/xdg-desktop-icon
+REPLACE_BASH+= scripts/xdg-desktop-menu
+REPLACE_BASH+= scripts/xdg-email
+REPLACE_BASH+= scripts/xdg-icon-resource
+REPLACE_BASH+= scripts/xdg-mime
+REPLACE_BASH+= scripts/xdg-open
+REPLACE_BASH+= scripts/xdg-screensaver
+REPLACE_BASH+= scripts/xdg-settings
.include "../../mk/bsd.pkg.mk"