summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Holland <tigger@gentoo.org>2003-07-31 16:01:15 +0000
committerRob Holland <tigger@gentoo.org>2003-07-31 16:01:15 +0000
commit833aae69393d7cb35d81f4582e2a63cf722d5ef2 (patch)
tree2f19f12ad94e014e81dd3c98003963b795491500 /media-sound/mup
parentVersion bump and tidied ebuild to make version bumps easier. Prompted by Wilb... (diff)
downloadhistorical-833aae69393d7cb35d81f4582e2a63cf722d5ef2.tar.gz
historical-833aae69393d7cb35d81f4582e2a63cf722d5ef2.tar.bz2
historical-833aae69393d7cb35d81f4582e2a63cf722d5ef2.zip
Version bump and tidied ebuild to make version bumps easier. Prompted by Wilbert Berendsen <wilbert@oswf.org>, closes #18636
Diffstat (limited to 'media-sound/mup')
-rw-r--r--media-sound/mup/Manifest4
-rw-r--r--media-sound/mup/mup-4.5.ebuild93
2 files changed, 95 insertions, 2 deletions
diff --git a/media-sound/mup/Manifest b/media-sound/mup/Manifest
index a7e3a99b950f..ebc0b61e2b20 100644
--- a/media-sound/mup/Manifest
+++ b/media-sound/mup/Manifest
@@ -1,7 +1,7 @@
MD5 edf3ac11b053eb583a519047e5e35ae4 mup-4.3.ebuild 1398
-MD5 49e9cdfa227678f6f3c812583a0337de mup-4.5.ebuild 2048
+MD5 532c326b8726b4d16dd5d385c67f2954 mup-4.5.ebuild 2141
MD5 87a61d062a4d99ad261d0d4b6c841250 mup-4.4.ebuild 2136
-MD5 9d5bcca61141d28ca0fa5085c657a107 ChangeLog 593
+MD5 fc90042dd01335ba0a38495ef4b5e17c ChangeLog 772
MD5 4358d467ef3da522a9ec0e3640172271 files/digest-mup-4.3 120
MD5 3cdff463ef32c2e7b16982e0db999cfa files/digest-mup-4.4 120
MD5 63364b59592440872b3ca477f89ab68b files/digest-mup-4.5 120
diff --git a/media-sound/mup/mup-4.5.ebuild b/media-sound/mup/mup-4.5.ebuild
new file mode 100644
index 000000000000..afa66e279781
--- /dev/null
+++ b/media-sound/mup/mup-4.5.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mup/mup-4.5.ebuild,v 1.1 2003/07/31 16:00:59 tigger Exp $
+
+MY_P="${P//[-.]/}"
+
+DESCRIPTION="Program for printing music scores."
+SRC_URI="ftp://ftp.arkkra.com/pub/unix/${MY_P}src.tar.gz
+ ftp://ftp.arkkra.com/pub/unix/${MY_P}doc.tar.gz"
+HOMEPAGE="http://www.arkkra.com"
+LICENSE="Arkkra"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="X svga"
+
+RDEPEND="X? ( virtual/x11 )
+ svga? ( >=media-libs/svgalib-1.4.3 )"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${MY_P}src.tar.gz
+
+ mkdir doc
+ cd doc
+ unpack ${MY_P}doc.tar.gz
+}
+
+src_compile() {
+ local param
+
+ cd mup
+ cc -O2 -o mup *.c -lm
+
+ cd ../mkmupfnt
+ cc -o mkmupfnt *.c
+
+ if [ -n "`use X`" -o -n "`use svga`" ] ; then
+ cd ../mupdisp
+ if [ -n "`use X`" ] ; then
+ param="-lX11 -L/usr/X11R6/lib"
+ else
+ mv dispttyp.h dispttyp.h.orig
+ sed <dispttyp.h.orig >dispttyp.h \
+ -e '/^#define XWINDOW/ d'
+ fi
+ if [ -n "`use svga`" ] ; then
+ param="${param} -lvga"
+ else
+ param="${param} -DNO_VGA_LIB"
+ fi
+ cc -o mupdisp *.c -lm ${param}
+ fi
+}
+
+src_install () {
+ dobin mup/mup
+ dobin mkmupfnt/mkmupfnt
+ dobin mupprnt
+ if [ -n "`use X`" -o -n "`use svga`" ] ; then
+ dobin mupdisp/mupdisp
+ fi
+
+ dodoc license.txt README0
+ cd doc
+ dodoc faq.txt mupfeat.txt overview.txt register.txt README1 \
+ mkmupfnt.ps mupdisp.ps mupprnt.ps mup.ps mupqref.ps oddeven.ps uguide.ps
+
+ doman mup.1 mupprnt.1 mkmupfnt.1
+ if [ -n "`use X`" -o -n "`use svga`" ] ; then
+ doman mupdisp.1
+ fi
+
+ dohtml uguide/*
+
+ docinto sample
+ dodoc sample.mup sample.ps star.mup star.ps template.mup
+}
+
+pkg_postinst() {
+ if [ "`use svga`" ] ; then
+ einfo "Please note that using mupdisp in SVGA mode on the console"
+ einfo "requires that it can write to the console device. To allow"
+ einfo "this, make mupdisp setuid to root, like this:"
+ einfo ""
+ einfo "\tchown root:root /usr/bin/mupdisp"
+ einfo "\tchmod u+s /usr/bin/mupdisp"
+ fi
+ if [ -n "`use X`" -o -n "`use svga`" ] ; then
+ echo
+ einfo "If you want to use mupdisp, make sure you also install ghostscript."
+ fi
+}