summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2005-05-06 04:35:58 +0000
committerMamoru Komachi <usata@gentoo.org>2005-05-06 04:35:58 +0000
commit128827554c8af584de26853411da2df27e2f0812 (patch)
tree26e6fddb16ff13f6eb5d9a9bfbd0468581b3b593 /app-office
parentenable --no-backup-if-mismatch by default in epatch (diff)
downloadhistorical-128827554c8af584de26853411da2df27e2f0812.tar.gz
historical-128827554c8af584de26853411da2df27e2f0812.tar.bz2
historical-128827554c8af584de26853411da2df27e2f0812.zip
Fixed mng dep. Thanks to James Rowe <jnrowe@ukfsn.org>; bug #91644.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'app-office')
-rw-r--r--app-office/magicpoint/ChangeLog6
-rw-r--r--app-office/magicpoint/Manifest21
-rw-r--r--app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch61
-rw-r--r--app-office/magicpoint/magicpoint-1.11b.ebuild27
4 files changed, 99 insertions, 16 deletions
diff --git a/app-office/magicpoint/ChangeLog b/app-office/magicpoint/ChangeLog
index ab911d11b8c8..3e4c9228cadf 100644
--- a/app-office/magicpoint/ChangeLog
+++ b/app-office/magicpoint/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-office/magicpoint
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/ChangeLog,v 1.17 2005/04/21 19:57:06 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/ChangeLog,v 1.18 2005/05/06 04:35:58 usata Exp $
+
+ 06 May 2005; Mamoru KOMACHI <usata@gentoo.org>
+ +files/magicpoint-1.11b-mng_optional.patch, magicpoint-1.11b.ebuild:
+ Fixed mng dep. Thanks to James Rowe <jnrowe@ukfsn.org>; bug #91644.
21 Apr 2005; Simon Stelling <blubb@gentoo.org> magicpoint-1.11b.ebuild:
stable on amd64
diff --git a/app-office/magicpoint/Manifest b/app-office/magicpoint/Manifest
index 6287001ac435..2bce1cbf3eb0 100644
--- a/app-office/magicpoint/Manifest
+++ b/app-office/magicpoint/Manifest
@@ -1,9 +1,20 @@
-MD5 cd1653a519a65308d8ae6f0aa77db105 ChangeLog 5273
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 2b59dbc871015da13d3287ebed072bfd magicpoint-1.11b.ebuild 2668
MD5 9814e14a89852e1c2cd3d0b0f197f437 magicpoint-1.10a-r1.ebuild 2022
-MD5 04bde2842dfb08cc69f78e75076d2a48 magicpoint-1.11b.ebuild 2470
+MD5 a7bb4a4b21e8157fd39766f0f77a0ba7 ChangeLog 5464
MD5 cca347d4b0e88766d322951ccf1e97e7 metadata.xml 570
-MD5 63a502fcee80a92007cd49e113116b04 files/50mgp-mode-gentoo.el 167
-MD5 6ac7b3bc9c394f597bf182a0509154fc files/digest-magicpoint-1.10a-r1 68
+MD5 fb8540abfe6224103b5d68b722e78119 files/magicpoint-1.11b-gentoo.diff 1412
MD5 02b686f1f35a47738d8938fb0151d3d0 files/digest-magicpoint-1.11b 68
+MD5 6ac7b3bc9c394f597bf182a0509154fc files/digest-magicpoint-1.10a-r1 68
MD5 3948d3f1ee43af2138ad361b1bcab87b files/magicpoint-1.10a-r1-gentoo.diff 1833
-MD5 fb8540abfe6224103b5d68b722e78119 files/magicpoint-1.11b-gentoo.diff 1412
+MD5 63a502fcee80a92007cd49e113116b04 files/50mgp-mode-gentoo.el 167
+MD5 b274f550ccb53c3e1057c561dcfaa2a7 files/magicpoint-1.11b-mng_optional.patch 1670
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFCevSQ1u6irqznjogRApSzAJ427E39PwYMLcoJ7TC2SsS0C7+SiQCeN5kN
+mQnqZa2GB4I0090jKwx1gcY=
+=1tYe
+-----END PGP SIGNATURE-----
diff --git a/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch b/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch
new file mode 100644
index 000000000000..f7ad9b402830
--- /dev/null
+++ b/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch
@@ -0,0 +1,61 @@
+Index: magicpoint-1.11b/configure.in
+===================================================================
+--- magicpoint-1.11b/configure.in {cset b4d3ff90-24b8-4cde-9052-f5859b9ff17a}
++++ magicpoint-1.11b/configure.in {local clone}
+@@ -292,27 +292,35 @@
+ done
+ fi
+
+-for i in /usr/pkg /usr/local /usr; do
+- if test -f $i/include/libmng.h; then
+- if test -f $i/lib/libmng.a ; then
+- DEPLIBS="$DEPLIBS $i/lib/libmng.a"
+- elif test -f $i/lib/libmng.so ; then
+- DEPLIBS="$DEPLIBS $i/lib/libmng.so"
+- else
+- break;
+- fi
+- LIBS="$LIBS -L$i/lib"
+- OPTFLAGS="$OPTFLAGS -I$i/include"
+- AC_CHECK_LIB(mng, mng_initialize,
+- [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng"
+- AC_DEFINE(MNG)],
+- [AC_CHECK_LIB(mng, mng_readdisplay,
+- [LIBS="$LIBS -lmng -ljpeg"
+- AC_DEFINE(MNG)],
+- [], [-ljpeg])])
+- break
+- fi
+-done
++AC_MSG_CHECKING(if mng handling is enabled)
++AC_ARG_ENABLE(mng,
++ [ --enable-mng compile mng support in.],
++ [mgp_mng="$enableval"],
++ [mgp_mng="no"])
++AC_MSG_RESULT($mgp_mng)
++if test $mgp_mng = "yes"; then
++ for i in /usr/pkg /usr/local /usr; do
++ if test -f $i/include/libmng.h; then
++ if test -f $i/lib/libmng.a ; then
++ DEPLIBS="$DEPLIBS $i/lib/libmng.a"
++ elif test -f $i/lib/libmng.so ; then
++ DEPLIBS="$DEPLIBS $i/lib/libmng.so"
++ else
++ break;
++ fi
++ LIBS="$LIBS -L$i/lib"
++ OPTFLAGS="$OPTFLAGS -I$i/include"
++ AC_CHECK_LIB(mng, mng_initialize,
++ [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng"
++ AC_DEFINE(MNG)],
++ [AC_CHECK_LIB(mng, mng_readdisplay,
++ [LIBS="$LIBS -lmng -ljpeg"
++ AC_DEFINE(MNG)],
++ [], [-ljpeg])])
++ break
++ fi
++ done
++fi
+
+ dnl Checks for header files.
+ AC_PATH_X
diff --git a/app-office/magicpoint/magicpoint-1.11b.ebuild b/app-office/magicpoint/magicpoint-1.11b.ebuild
index fe7822d29238..77b801ed21ec 100644
--- a/app-office/magicpoint/magicpoint-1.11b.ebuild
+++ b/app-office/magicpoint/magicpoint-1.11b.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/magicpoint-1.11b.ebuild,v 1.8 2005/04/21 19:57:06 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/magicpoint/magicpoint-1.11b.ebuild,v 1.9 2005/05/06 04:35:58 usata Exp $
-inherit elisp-common eutils
+inherit elisp-common eutils fixheadtails
DESCRIPTION="an X11 based presentation tool"
SRC_URI="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/${P}.tar.gz
@@ -12,15 +12,18 @@ 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"
+IUSE="cjk nls m17n-lib emacs truetype gif imlib mng"
-DEPEND="virtual/x11
+MY_DEPEND="virtual/x11
gif? ( >=media-libs/giflib-4.0.1 )
imlib? ( media-libs/imlib )
truetype? ( virtual/xft )
emacs? ( virtual/emacs )
- m17n-lib? ( dev-libs/m17n-lib )"
-RDEPEND="${DEPEND}
+ m17n-lib? ( dev-libs/m17n-lib )
+ mng? ( media-libs/libmng )"
+DEPEND="${MY_DEPEND}
+ sys-devel/autoconf"
+RDEPEND="${MY_DEPEND}
nls? ( sys-devel/gettext )
truetype? ( cjk? ( media-fonts/sazanami ) )"
@@ -38,16 +41,20 @@ has_emacs() {
src_unpack() {
unpack ${A}
cd ${S}
- epatch ${FILESDIR}/${PF}-gentoo.diff
-}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+ epatch ${FILESDIR}/${P}-mng_optional.patch
-src_compile() {
# bug #85720
- sed -i -e "s/ungif/gif/g" configure* || die
+ sed -i -e "s/ungif/gif/g" configure.in || die
+ ht_fix_file configure.in
+ autoreconf
+}
+src_compile() {
econf \
$(use_enable gif) \
$(use_enable imlib) \
+ $(use_enable mng) \
$(use_enable nls locale) \
$(use_enable truetype xft2) \
$(use_with m17n-lib) \