pkgsrc-WIP-changes archive

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

sowm, add README.md to share/doc/sowm



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Fri Apr 10 21:52:56 2020 +0200
Changeset:	4dfc7d31beefa2795d2ab80252ccb7cb4a3d502d

Modified Files:
	sowm/Makefile
	sowm/PLIST

Log Message:
sowm, add README.md to share/doc/sowm

Allow users to navigate keybindings without the need
of a web browser

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

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

diffstat:
 sowm/Makefile | 15 ++++++++++-----
 sowm/PLIST    |  1 +
 2 files changed, 11 insertions(+), 5 deletions(-)

diffs:
diff --git a/sowm/Makefile b/sowm/Makefile
index 9388a2a6b4..5ba609e378 100644
--- a/sowm/Makefile
+++ b/sowm/Makefile
@@ -11,12 +11,13 @@ LICENSE=	mit
 
 USE_LANGUAGES=	c99
 
-INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	bin share/doc/sowm
 
-SUBST_CLASSES+=         optimize
-SUBST_STAGE.optimize=   pre-configure
-SUBST_SED.optimize+=    -e 's|-O3||g'
-SUBST_FILES.optimize+=  ${WRKSRC}/Makefile
+#Do not force -O3 optimizations
+SUBST_CLASSES+=		optimize
+SUBST_STAGE.optimize=	pre-configure
+SUBST_SED.optimize+=	-e 's|-O3||g'
+SUBST_FILES.optimize+=	Makefile
 
 DEPENDS+=	dmenu-[0-9]*:../../x11/dmenu
 DEPENDS+=	st-term-[0-9]*:../../x11/st-term
@@ -27,5 +28,9 @@ DEPENDS+=	scrot-[0-9]*:../../graphics/scrot
 DEPENDS+=	alsa-utils-[0-9]*:../../audio/alsa-utils
 .endif
 
+post-install:
+	${RUN} cd ${WRKSRC} && ${INSTALL_DATA} README.md \
+	${DESTDIR}${PREFIX}/share/doc/sowm
+
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/sowm/PLIST b/sowm/PLIST
index 0196d6c071..6b157e5d43 100644
--- a/sowm/PLIST
+++ b/sowm/PLIST
@@ -1,2 +1,3 @@
 @comment $NetBSD$
 bin/sowm
+share/doc/sowm/README.md


Home | Main Index | Thread Index | Old Index