pkgsrc-WIP-changes archive

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

doom2-pwad-preacher: Drop MESSAGE, install info to share/doc instead



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Fri Aug 23 12:41:55 2019 +0200
Changeset:	55faf0ee280bfa437bd4cb387c7a3fe405b548ce

Modified Files:
	doom2-pwad-preacher/Makefile
	doom2-pwad-preacher/PLIST
Added Files:
	doom2-pwad-preacher/files/INSTALL.pkgsrc

Log Message:
doom2-pwad-preacher: Drop MESSAGE, install info to share/doc instead

Suggested by wiz@.

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

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

diffstat:
 doom2-pwad-preacher/Makefile             | 18 +++++++++++++++---
 doom2-pwad-preacher/PLIST                |  1 +
 doom2-pwad-preacher/files/INSTALL.pkgsrc |  7 +++++++
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs:
diff --git a/doom2-pwad-preacher/Makefile b/doom2-pwad-preacher/Makefile
index 0a0cedaf9a..1974e44331 100644
--- a/doom2-pwad-preacher/Makefile
+++ b/doom2-pwad-preacher/Makefile
@@ -3,6 +3,7 @@
 DISTNAME=		preacher
 # Use release date from preacher.txt as package version
 PKGNAME=		doom2-pwad-${DISTNAME}-20181129
+PKGREVISION=		1
 CATEGORIES=		games
 MASTER_SITES=		ftp://ftp.fu-berlin.de/pc/games/idgames/levels/doom2/Ports/p-r/
 MASTER_SITES+=		ftp://mirrors.syringanetworks.net/idgames/levels/doom2/Ports/p-r/
@@ -16,18 +17,29 @@ LICENSE=		preacher-license
 
 # DOOMWADDIR is intentionally shared with other Doom packages
 DOOMWADDIR=		share/doom
-INSTALLATION_DIRS=	${DOOMWADDIR}
+INSTALLATION_DIRS=	${DOOMWADDIR} share/doc/doom2-pwad-${DISTNAME}
 
-MESSAGE_SRC+=		MESSAGE.doom2-pwad-preacher
-MESSAGE_SUBST+=		DOOMWADDIR="${PREFIX}/${DOOMWADDIR}"
+# Configure INSTALL.pkgsrc (formerly displayed as MESSAGE)
+SUBST_CLASSES+=		install
+SUBST_STAGE.install=	do-configure
+SUBST_MESSAGE.install=	Preparing INSTALL.pkgsrc file ...
+SUBST_FILES.install=	INSTALL.pkgsrc
+SUBST_SED.install=	-e 's,DOOMWADDIR,${PREFIX}/${DOOMWADDIR},'
 
 NO_BUILD=		yes
 
+pre-configure:
+	${MKDIR} ${WRKSRC}
+	${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKSRC}
+
 do-install:
 	cd ${WRKDIR} &&							\
 		${INSTALL_DATA} PREACHER.wad				\
 			${DESTDIR}${PREFIX}/${DOOMWADDIR}/PREACHER.wad;	\
 		${INSTALL_DATA} preacher.txt				\
 			${DESTDIR}${PREFIX}/${DOOMWADDIR}/PREACHER.txt
+	cd ${WRKSRC} &&							\
+		${INSTALL_DATA} INSTALL.pkgsrc				\
+			${DESTDIR}${PREFIX}/share/doc/doom2-pwad-${DISTNAME}/INSTALL.pkgsrc
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/doom2-pwad-preacher/PLIST b/doom2-pwad-preacher/PLIST
index fd5df4943c..e75379bf1a 100644
--- a/doom2-pwad-preacher/PLIST
+++ b/doom2-pwad-preacher/PLIST
@@ -1,3 +1,4 @@
 @comment $NetBSD$
+share/doc/doom2-pwad-preacher/INSTALL.pkgsrc
 share/doom/PREACHER.txt
 share/doom/PREACHER.wad
diff --git a/doom2-pwad-preacher/files/INSTALL.pkgsrc b/doom2-pwad-preacher/files/INSTALL.pkgsrc
new file mode 100644
index 0000000000..11e10ce28e
--- /dev/null
+++ b/doom2-pwad-preacher/files/INSTALL.pkgsrc
@@ -0,0 +1,7 @@
+The PWAD file PREACHER.wad and the description PREACHER.txt have been installed
+to:
+
+   DOOMWADDIR
+
+This is the pkgsrc standard Doom WAD directory location (shared with other Doom
+packages).


Home | Main Index | Thread Index | Old Index