pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sowm, final fixes



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Fri Apr 10 14:45:29 2020 +0200
Changeset:	65f69c928dbae45a85e69d91d4dc23ee1471794c

Modified Files:
	sowm/Makefile
	sowm/distinfo
	sowm/patches/patch-config.def.h

Log Message:
sowm, final fixes

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=65f69c928dbae45a85e69d91d4dc23ee1471794c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sowm/Makefile                   | 10 ++++++++--
 sowm/distinfo                   |  2 +-
 sowm/patches/patch-config.def.h |  8 ++++++--
 3 files changed, 15 insertions(+), 5 deletions(-)

diffs:
diff --git a/sowm/Makefile b/sowm/Makefile
index bf6a43b945..9388a2a6b4 100644
--- a/sowm/Makefile
+++ b/sowm/Makefile
@@ -3,21 +3,27 @@
 DISTNAME=	sowm-1.6
 CATEGORIES=	wm
 MASTER_SITES=	${MASTER_SITE_GITHUB:=dylanaraps/}
-GITHUB_TAG=	${PKGVERSION_NOREV}
 
 MAINTAINER=	voidpin%protonmail.com@localhost
 HOMEPAGE=	https://github.com/dylanaraps/sowm/
 COMMENT=	Itsy bitsy floating window manager
 LICENSE=	mit
 
+USE_LANGUAGES=	c99
+
 INSTALLATION_DIRS+=	bin
 
+SUBST_CLASSES+=         optimize
+SUBST_STAGE.optimize=   pre-configure
+SUBST_SED.optimize+=    -e 's|-O3||g'
+SUBST_FILES.optimize+=  ${WRKSRC}/Makefile
+
 DEPENDS+=	dmenu-[0-9]*:../../x11/dmenu
 DEPENDS+=	st-term-[0-9]*:../../x11/st-term
 DEPENDS+=	scrot-[0-9]*:../../graphics/scrot
 
 .include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "Linux"
+.if ${OPSYS} != "NetBSD"
 DEPENDS+=	alsa-utils-[0-9]*:../../audio/alsa-utils
 .endif
 
diff --git a/sowm/distinfo b/sowm/distinfo
index f9f8663907..94ea5b4342 100644
--- a/sowm/distinfo
+++ b/sowm/distinfo
@@ -4,4 +4,4 @@ SHA1 (sowm-1.6.tar.gz) = 87bd3f40ae70364c15f8e36c78c95e146d1423ac
 RMD160 (sowm-1.6.tar.gz) = f1f5ec85623335214e9e89fc2ce2e48a74679415
 SHA512 (sowm-1.6.tar.gz) = 36f0818d769c224c727713d862201dee7478a04e99c4b0ea0e48a1e1a12a033f704962351ec39df901c196a0ab75fd07b0551b6177f3bb51639dc1ea362b0c16
 Size (sowm-1.6.tar.gz) = 5916 bytes
-SHA1 (patch-config.def.h) = ecd075f42fccebf51231d0aebc6656cfe6b93851
+SHA1 (patch-config.def.h) = 168b053ed36b3e29aad9d060c5bfdc60dc4c88ed
diff --git a/sowm/patches/patch-config.def.h b/sowm/patches/patch-config.def.h
index e112db302d..b68d51375d 100644
--- a/sowm/patches/patch-config.def.h
+++ b/sowm/patches/patch-config.def.h
@@ -4,8 +4,12 @@ Use mixerctl instead of amixer on NetBSD
 
 --- config.def.h.orig	2020-02-21 16:08:47.000000000 +0000
 +++ config.def.h
-@@ -8,9 +8,15 @@ const char* term[]    = {"st",          
- const char* scrot[]   = {"scr",            0};
+@@ -5,12 +5,18 @@
+ 
+ const char* menu[]    = {"dmenu_run",      0};
+ const char* term[]    = {"st",             0};
+-const char* scrot[]   = {"scr",            0};
++const char* scrot[]   = {"scrot",          0};
  const char* briup[]   = {"bri", "10", "+", 0};
  const char* bridown[] = {"bri", "10", "-", 0};
 +#if defined (__NetBSD__)


Home | Main Index | Thread Index | Old Index