summaryrefslogtreecommitdiffstats
path: root/app-dicts/slowo/slowo-1.0.ebuild
blob: a73e1a4faa2640d7a44f76f7dc1299e337e596dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Slowo Dictionary"
SRC_URI="http://dside.dyndns.org/files/darklin/slowo.tar.bz2"
SLOT="0"

KEYWORDS="x86 amd64"
LICENSE="GPL-2"
IUSE="X"

FONT_ROOT=/usr/share/fonts/DarkLin

DEPEND="sys-libs/ncurses
	X? ( x11-base/xorg-x11 )"

src_compile() {
    cd ${WORKDIR}
    
    cd slowo || die
    make
#    cd ../sortbase || die
#    make

    if use X ; then
	cd ../xslowo
	make
#    	cd ../qtslowo
#    	make
    fi
}

src_install() {
	cd ${WORKDIR}
	
	mkdir -p ${D}/usr/bin
	mkdir -p ${D}/${FONT_ROOT}

	install -c -m 755 slowo/slowo ${D}/usr/bin/slowo
#	install -c -m 755 sortbase/slowosort ${D}/usr/bin/slowosort
	cp -rf dwa ${D}/usr/share

	if use X ; then
		install -c -m 755 xslowo/slowo ${D}/usr/bin/xslowo
#		install -c -m 755 qtslowo/slowo ${D}/usr/bin/qtslowo
	fi

	cp -rf IPAFonts ${D}/${FONT_ROOT}
}

pkg_postinst() {
    einfo "In order to make X see the fonts, you need to add the"
    einfo "following lines to the files section of your "
    einfo "/etc/X11/XF86Config (or the XOrg equivalent):"
    einfo "  FontPath \"${FONT_ROOT}/DarkLin/IPAFonts:unscaled\""
}