pkgsrc-WIP-changes archive

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

mbrolavox*: simplify by extracting common settings



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Fri Jan 26 13:54:33 2024 +0100
Changeset:	9c75880343e3b6e3a20959da2d3c2add5d5597a8

Modified Files:
	mbrolavox-en1/Makefile
	mbrolavox-us1/Makefile
	mbrolavox-us2/Makefile
	mbrolavox-us3/Makefile
Added Files:
	mbrola/mbrolavox.mk

Log Message:
mbrolavox*: simplify by extracting common settings

Correct COMMENT while here.

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

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

diffstat:
 mbrola/mbrolavox.mk    | 33 +++++++++++++++++++++++++++++++++
 mbrolavox-en1/Makefile | 30 ++----------------------------
 mbrolavox-us1/Makefile | 30 ++----------------------------
 mbrolavox-us2/Makefile | 30 ++----------------------------
 mbrolavox-us3/Makefile | 30 ++----------------------------
 5 files changed, 41 insertions(+), 112 deletions(-)

diffs:
diff --git a/mbrola/mbrolavox.mk b/mbrola/mbrolavox.mk
new file mode 100644
index 0000000000..9c51a3e192
--- /dev/null
+++ b/mbrola/mbrolavox.mk
@@ -0,0 +1,33 @@
+# $NetBSD$
+#
+# shared Makefile fragment for mbrola voices
+# set VOX before including this (e.g. to 'en1')
+
+COMMITS=	16
+DISTNAME=	MBROLA-voices-0.0.0.${COMMITS}
+PKGNAME=	mbrolavox-${VOX}-0.0.0.${COMMITS}
+CATEGORIES=	audio
+MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
+GITHUB_PROJECT=	MBROLA-voices
+GITHUB_TAG=	fe05a0ccef6a941207fd6aaad0b31294a1f93a51
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/numediart/MBROLA-voices
+# the particular license of this voice is included in ${DESTDIR}${MHOME}${VOX}
+LICENSE=		mbrola-voices-license
+
+RESTRICTED=		Commercial distribution not allowed without permission from the authors
+NO_BIN_ON_CDROM=	${RESTRICTED}
+NO_SRC_ON_CDROM=	${RESTRICTED}
+
+DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
+
+USE_TOOLS+=	pax
+
+NO_BUILD=	yes
+
+MHOME=	${PREFIX}/share/mbrola/voices
+
+do-install:
+	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
+	cd ${WRKSRC}/data && pax -pp -rw ${VOX} ${DESTDIR}${MHOME}
diff --git a/mbrolavox-en1/Makefile b/mbrolavox-en1/Makefile
index 8676b34c49..0441018372 100644
--- a/mbrolavox-en1/Makefile
+++ b/mbrolavox-en1/Makefile
@@ -1,33 +1,7 @@
 # $NetBSD$
 
 VOX=		en1
-COMMITS=	16
-PKGNAME=	mbrolavox-${VOX}-0.0.0.${COMMITS}
-DISTNAME=	MBROLA-voices-0.0.0.${COMMITS}
-CATEGORIES=	audio
-MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
-GITHUB_PROJECT=	MBROLA-voices
-GITHUB_TAG=	fe05a0ccef6a941207fd6aaad0b31294a1f93a51
-
-MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=		https://github.com/numediart/MBROLA-voices
-COMMENT=		British English male voice for MBROLA
-# the particular license of this voice is included in ${DESTDIR}${MHOME}${VOX}
-LICENSE=		mbrola-voices-license
-RESTRICTED=		Commercial distribution not allowed without permission from the authors
-NO_BIN_ON_CDROM=	${RESTRICTED}
-NO_SRC_ON_CDROM=	${RESTRICTED}
-
-DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
-
-USE_TOOLS+=	pax
-
-NO_BUILD=	yes
-
-MHOME=	${PREFIX}/share/mbrola/voices
-
-do-install:
-	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
-	cd ${WRKSRC}/data && pax -rw ${VOX} ${DESTDIR}${MHOME}
+COMMENT=	British English male voice for MBROLA
 
+.include "../../wip/mbrola/mbrolavox.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mbrolavox-us1/Makefile b/mbrolavox-us1/Makefile
index 957ad68c4d..36ab82dd4f 100644
--- a/mbrolavox-us1/Makefile
+++ b/mbrolavox-us1/Makefile
@@ -1,33 +1,7 @@
 # $NetBSD$
 
 VOX=		us1
-COMMITS=	16
-PKGNAME=	mbrolavox-${VOX}-0.0.0.${COMMITS}
-DISTNAME=	MBROLA-voices-0.0.0.${COMMITS}
-CATEGORIES=	audio
-MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
-GITHUB_PROJECT=	MBROLA-voices
-GITHUB_TAG=	fe05a0ccef6a941207fd6aaad0b31294a1f93a51
-
-MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=		https://github.com/numediart/MBROLA-voices
-COMMENT=		British English male voice for MBROLA
-# the particular license of this voice is included in ${DESTDIR}${MHOME}${VOX}
-LICENSE=		mbrola-voices-license
-RESTRICTED=		Commercial distribution not allowed without permission from the authors
-NO_BIN_ON_CDROM=	${RESTRICTED}
-NO_SRC_ON_CDROM=	${RESTRICTED}
-
-DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
-
-USE_TOOLS+=	pax
-
-NO_BUILD=	yes
-
-MHOME=	${PREFIX}/share/mbrola/voices
-
-do-install:
-	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
-	cd ${WRKSRC}/data && pax -rw ${VOX} ${DESTDIR}${MHOME}
+COMMENT=	American English female voice for MBROLA
 
+.include "../../wip/mbrola/mbrolavox.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mbrolavox-us2/Makefile b/mbrolavox-us2/Makefile
index ef1473fbc5..4b8c582454 100644
--- a/mbrolavox-us2/Makefile
+++ b/mbrolavox-us2/Makefile
@@ -1,33 +1,7 @@
 # $NetBSD$
 
 VOX=		us2
-COMMITS=	16
-PKGNAME=	mbrolavox-${VOX}-0.0.0.${COMMITS}
-DISTNAME=	MBROLA-voices-0.0.0.${COMMITS}
-CATEGORIES=	audio
-MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
-GITHUB_PROJECT=	MBROLA-voices
-GITHUB_TAG=	fe05a0ccef6a941207fd6aaad0b31294a1f93a51
-
-MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=		https://github.com/numediart/MBROLA-voices
-COMMENT=		British English male voice for MBROLA
-# the particular license of this voice is included in ${DESTDIR}${MHOME}${VOX}
-LICENSE=		mbrola-voices-license
-RESTRICTED=		Commercial distribution not allowed without permission from the authors
-NO_BIN_ON_CDROM=	${RESTRICTED}
-NO_SRC_ON_CDROM=	${RESTRICTED}
-
-DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
-
-USE_TOOLS+=	pax
-
-NO_BUILD=	yes
-
-MHOME=	${PREFIX}/share/mbrola/voices
-
-do-install:
-	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
-	cd ${WRKSRC}/data && pax -rw ${VOX} ${DESTDIR}${MHOME}
+COMMENT=	American English male voice for MBROLA
 
+.include "../../wip/mbrola/mbrolavox.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mbrolavox-us3/Makefile b/mbrolavox-us3/Makefile
index 3800efaea8..e193ae5d0e 100644
--- a/mbrolavox-us3/Makefile
+++ b/mbrolavox-us3/Makefile
@@ -1,33 +1,7 @@
 # $NetBSD$
 
 VOX=		us3
-COMMITS=	16
-PKGNAME=	mbrolavox-${VOX}-0.0.0.${COMMITS}
-DISTNAME=	MBROLA-voices-0.0.0.${COMMITS}
-CATEGORIES=	audio
-MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
-GITHUB_PROJECT=	MBROLA-voices
-GITHUB_TAG=	fe05a0ccef6a941207fd6aaad0b31294a1f93a51
-
-MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=		https://github.com/numediart/MBROLA-voices
-COMMENT=		British English male voice for MBROLA
-# the particular license of this voice is included in ${DESTDIR}${MHOME}${VOX}
-LICENSE=		mbrola-voices-license
-RESTRICTED=		Commercial distribution not allowed without permission from the authors
-NO_BIN_ON_CDROM=	${RESTRICTED}
-NO_SRC_ON_CDROM=	${RESTRICTED}
-
-DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
-
-USE_TOOLS+=	pax
-
-NO_BUILD=	yes
-
-MHOME=	${PREFIX}/share/mbrola/voices
-
-do-install:
-	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
-	cd ${WRKSRC}/data && pax -rw ${VOX} ${DESTDIR}${MHOME}
+COMMENT=	American English male voice for MBROLA
 
+.include "../../wip/mbrola/mbrolavox.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index