blob: ae55a18c077da1866c291bc4304774f78f715322 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/magicpoint-1.12a.ebuild,v 1.5 2007/09/25 06:13:51 opfer Exp $
inherit autotools elisp-common eutils fixheadtails
DESCRIPTION="an X11 based presentation tool"
SRC_URI="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/${P}.tar.gz
ftp://ftp.mew.org/pub/MagicPoint/${P}.tar.gz"
HOMEPAGE="http://member.wide.ad.jp/wg/mgp/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~alpha ~sparc ~ppc ~amd64"
IUSE="cjk nls m17n-lib emacs truetype gif imlib"
MY_DEPEND="x11-libs/libICE
x11-libs/libSM
x11-libs/libXrender
x11-libs/libXmu
gif? ( >=media-libs/giflib-4.0.1 )
imlib? ( media-libs/imlib )
truetype? ( virtual/xft )
emacs? ( virtual/emacs )
m17n-lib? ( dev-libs/m17n-lib )
mng? ( media-libs/libmng )"
DEPEND="${MY_DEPEND}
sys-devel/autoconf
x11-proto/xextproto
x11-libs/libxkbfile
app-text/rman
x11-misc/imake"
RDEPEND="${MY_DEPEND}
nls? ( sys-devel/gettext )
truetype? ( cjk? ( media-fonts/sazanami ) )"
SITEFILE=50${PN}-gentoo.el
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-1.11b-gentoo.diff"
# bug #85720
sed -i -e "s/ungif/gif/g" configure.in || die "sed failed"
ht_fix_file configure.in
eautoreconf
}
src_compile() {
econf \
$(use_enable gif) \
$(use_enable imlib) \
$(use_enable nls locale) \
$(use_enable truetype xft2) \
$(use_with m17n-lib) \
--disable-vflib \
--disable-freetype \
--x-libraries=/usr/X11R6/lib \
--x-includes=/usr/X11R6/include || die "econf failed"
xmkmf || die "xmkmf failed"
# no parallel build possibly, anywhere
emake -j1 Makefiles || die "emake Makefiles failed"
emake -j1 clean || die "emake clean failed"
emake -j1 BINDIR=/usr/bin LIBDIR=/etc/X11 || die "emake failed"
use emacs && cp contrib/*.el "${S}" && \
elisp-compile *.el || die "elisp-compile failed"
}
src_install() {
emake -j1 \
DESTDIR="${D}" \
BINDIR=/usr/bin \
LIBDIR=/etc/X11 \
install || die "emake install failed"
emake -j1 \
DESTDIR="${D}" \
DOCHTMLDIR=/usr/share/doc/${PF} \
MANPATH=/usr/share/man \
MANSUFFIX=1 \
install.man || die "emake install.man failed"
exeinto /usr/bin
doexe contrib/{mgp2html.pl,mgp2latex.pl}
if use emacs ; then
elisp-install ${PN} *.el *.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
dodoc COPYRIGHT* FAQ README* RELNOTES SYNTAX TODO* USAGE*
insinto /usr/share/${PF}/sample
cd sample
doins README* cloud.jpg dad.* embed*.mgp gradation*.mgp \
mgp-old*.jpg mgp.mng mgp3.xbm mgprc-sample \
multilingual.mgp sample*.mgp sendmail6*.mgp \
tutorial*.mgp v6*.mgp v6header.* || die "example installation failed"
}
pkg_postinst() {
elog
elog "If you enabled xft2 support (default) you may specify xfont directive by"
elog "font name and font registry."
elog "e.g.)"
elog '%deffont "standard" xfont "sazanami mincho" "jisx0208.1983"'
elog
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|