Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/magicpoint: ChangeLog magicpoint-1.12a-r1.ebuild magicpoint-1.12a.ebuild
Date: Tue, 25 Sep 2007 11:58:44
Message-Id: E1Ia8vj-0007Tc-IQ@stork.gentoo.org
1 opfer 07/09/25 11:50:19
2
3 Modified: ChangeLog
4 Added: magicpoint-1.12a-r1.ebuild
5 Removed: magicpoint-1.12a.ebuild
6 Log:
7 remove old ebuild; introduce doc and examples USE flags; don't install COPYRIGHT files; make intallation succesful even without USE=emacs
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.29 app-office/magicpoint/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/magicpoint/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/magicpoint/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/magicpoint/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/magicpoint/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 25 Sep 2007 06:13:52 -0000 1.28
24 +++ ChangeLog 25 Sep 2007 11:50:19 -0000 1.29
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-office/magicpoint
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/ChangeLog,v 1.28 2007/09/25 06:13:52 opfer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/ChangeLog,v 1.29 2007/09/25 11:50:19 opfer Exp $
30 +
31 +*magicpoint-1.12a-r1 (25 Sep 2007)
32 +
33 + 25 Sep 2007; Christian Faulhammer <opfer@g.o>
34 + -magicpoint-1.12a.ebuild, +magicpoint-1.12a-r1.ebuild:
35 + remove old ebuild; introduce doc and examples USE flags; don't install
36 + COPYRIGHT files; make intallation succesful even without USE=emacs
37
38 25 Sep 2007; Christian Faulhammer <opfer@g.o>
39 magicpoint-1.12a.ebuild:
40
41
42
43 1.1 app-office/magicpoint/magicpoint-1.12a-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/magicpoint/magicpoint-1.12a-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/magicpoint/magicpoint-1.12a-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: magicpoint-1.12a-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/magicpoint-1.12a-r1.ebuild,v 1.1 2007/09/25 11:50:19 opfer Exp $
53
54 inherit autotools elisp-common eutils fixheadtails
55
56 DESCRIPTION="An X11 based presentation tool"
57 SRC_URI="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/${P}.tar.gz
58 ftp://ftp.mew.org/pub/MagicPoint/${P}.tar.gz"
59 HOMEPAGE="http://member.wide.ad.jp/wg/mgp/"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~alpha ~ppc ~sparc ~x86"
64 IUSE="cjk doc emacs examples gif imlib m17n-lib nls truetype"
65
66 MY_DEPEND="x11-libs/libICE
67 x11-libs/libSM
68 x11-libs/libXrender
69 x11-libs/libXmu
70 gif? ( >=media-libs/giflib-4.0.1 )
71 imlib? ( media-libs/imlib )
72 truetype? ( virtual/xft )
73 emacs? ( virtual/emacs )
74 m17n-lib? ( dev-libs/m17n-lib )
75 mng? ( media-libs/libmng )"
76 DEPEND="${MY_DEPEND}
77 sys-devel/autoconf
78 x11-proto/xextproto
79 x11-libs/libxkbfile
80 app-text/rman
81 x11-misc/imake"
82 RDEPEND="${MY_DEPEND}
83 nls? ( sys-devel/gettext )
84 truetype? ( cjk? ( media-fonts/sazanami ) )"
85
86 SITEFILE=50${PN}-gentoo.el
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91 epatch "${FILESDIR}/${PN}-1.11b-gentoo.diff"
92
93 # bug #85720
94 sed -i -e "s/ungif/gif/g" configure.in || die "sed failed"
95 ht_fix_file configure.in
96 eautoreconf
97 }
98
99 src_compile() {
100 econf \
101 $(use_enable gif) \
102 $(use_enable imlib) \
103 $(use_enable nls locale) \
104 $(use_enable truetype xft2) \
105 $(use_with m17n-lib) \
106 --disable-vflib \
107 --disable-freetype \
108 --x-libraries=/usr/X11R6/lib \
109 --x-includes=/usr/X11R6/include || die "econf failed"
110
111 xmkmf || die "xmkmf failed"
112 # no parallel build possibly, anywhere
113 emake -j1 Makefiles || die "emake Makefiles failed"
114 emake -j1 clean || die "emake clean failed"
115 emake -j1 BINDIR=/usr/bin LIBDIR=/etc/X11 || die "emake failed"
116 if use emacs; then
117 cd contrib/
118 elisp-compile *.el || die "elisp-compile failed"
119 fi
120 }
121
122 src_install() {
123 emake -j1 \
124 DESTDIR="${D}" \
125 BINDIR=/usr/bin \
126 LIBDIR=/etc/X11 \
127 install || die "emake install failed"
128
129 emake -j1 \
130 DESTDIR="${D}" \
131 DOCHTMLDIR=/usr/share/doc/${PF} \
132 MANPATH=/usr/share/man \
133 MANSUFFIX=1 \
134 install.man || die "emake install.man failed"
135
136 dobin contrib/{mgp2html.pl,mgp2latex.pl}
137
138 if use emacs ; then
139 elisp-install ${PN} *.el *.elc || die "elisp-install failed"
140 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
141 fi
142
143 use doc && dodoc FAQ README* RELNOTES SYNTAX TODO* USAGE*
144
145 if use examples; then
146 cd sample
147 insinto /usr/share/${PF}/sample
148 doins README* cloud.jpg dad.* embed*.mgp gradation*.mgp \
149 mgp-old*.jpg mgp.mng mgp3.xbm mgprc-sample \
150 multilingual.mgp sample*.mgp sendmail6*.mgp \
151 tutorial*.mgp v6*.mgp v6header.* || \
152 die "example installation failed"
153 fi
154 }
155
156 pkg_postinst() {
157 elog
158 elog "If you enabled xft2 support (default) you may specify xfont directive by"
159 elog "font name and font registry."
160 elog "e.g.)"
161 elog '%deffont "standard" xfont "sazanami mincho" "jisx0208.1983"'
162 elog
163 use emacs && elisp-site-regen
164 }
165
166 pkg_postrm() {
167 use emacs && elisp-site-regen
168 }
169
170
171
172 --
173 gentoo-commits@g.o mailing list