summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-06-21 16:11:44 +0000
committerMamoru Komachi <usata@gentoo.org>2004-06-21 16:11:44 +0000
commit1104dc5e40285de4546a6dc992faa0df2d766d2c (patch)
treeded57b7d64d10f8318087ea8476dd30abb40a3b9 /media-fonts/monafont/monafont-2.90-r1.ebuild
parentApplied libchewing patch. Special thanks to Palatis <palatis@gentoo.org.tw> a... (diff)
downloadgentoo-2-1104dc5e40285de4546a6dc992faa0df2d766d2c.tar.gz
gentoo-2-1104dc5e40285de4546a6dc992faa0df2d766d2c.tar.bz2
gentoo-2-1104dc5e40285de4546a6dc992faa0df2d766d2c.zip
font.eclassify
Diffstat (limited to 'media-fonts/monafont/monafont-2.90-r1.ebuild')
-rw-r--r--media-fonts/monafont/monafont-2.90-r1.ebuild74
1 files changed, 74 insertions, 0 deletions
diff --git a/media-fonts/monafont/monafont-2.90-r1.ebuild b/media-fonts/monafont/monafont-2.90-r1.ebuild
new file mode 100644
index 000000000000..1ac71f550fe1
--- /dev/null
+++ b/media-fonts/monafont/monafont-2.90-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/monafont/monafont-2.90-r1.ebuild,v 1.1 2004/06/21 16:07:00 usata Exp $
+
+inherit font
+
+IUSE="X truetype"
+
+MY_P=${P/_/}
+
+DESCRIPTION="Japanese bitmap and TrueType fonts suitable for browsing 2ch"
+HOMEPAGE="http://monafont.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
+ truetype? ( mirror://sourceforge/${PN}/${PN}-ttf-${PV}.zip )"
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64"
+IUSE=""
+DEPEND="virtual/x11
+ dev-lang/perl
+ >=sys-apps/sed-4"
+RDEPEND="X? ( virtual/x11 )"
+
+S="${WORKDIR}/${MY_P}"
+FONT_S="${WORKDIR}"
+FONT_SUFFIX="ttf"
+FONTDIR=/usr/share/fonts/${PN}
+
+src_unpack() {
+
+ unpack ${A}
+ sed -i -e 's:$(X11BINDIR)/mkdirhier:/bin/mkdir -p:' ${S}/Makefile
+}
+
+src_compile(){
+
+ PERL_BADLANG=0 ; LC_CTYPE=C
+ export PERL_BADLANG LC_CTYPE
+ emake || die
+}
+
+src_install(){
+
+ make install X11FONTDIR=${D}/${FONTDIR} || die
+ mkfontdir ${D}/${FONTDIR}
+ insinto ${FONTDIR}
+ newins fonts.alias.mona fonts.alias
+ dodoc README*
+
+ if use truetype ; then
+ DOCS=${WORKDIR}/README-ttf.txt
+ font_src_install
+ fi
+}
+
+pkg_postinst(){
+
+ einfo
+ einfo "You need to add following line into 'Section \"Files\"' in"
+ einfo "XF86Config and reboot X Window System, to use these fonts."
+ einfo
+ einfo "\tFontPath \"${FONTDIR}\""
+ einfo
+}
+
+pkg_postrm(){
+
+ einfo
+ einfo "You need to remove following line in 'Section \"Files\"' in"
+ einfo "XF86Config, to unmerge this package completely."
+ einfo
+ einfo "\tFontPath \"${FONTDIR}\""
+ einfo
+}