summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-05-11 12:09:54 +0000
committerPeter Volkov <pva@gentoo.org>2008-05-11 12:09:54 +0000
commitb1667157812bd2f766c3786baad9b5b1e022cdf3 (patch)
tree993e488485fab413c4fe661746a09f057eaf016b /media-gfx/xfig
parentRemoved executalbe permission and fixed location of misc files which are inst... (diff)
downloadgentoo-2-b1667157812bd2f766c3786baad9b5b1e022cdf3.tar.gz
gentoo-2-b1667157812bd2f766c3786baad9b5b1e022cdf3.tar.bz2
gentoo-2-b1667157812bd2f766c3786baad9b5b1e022cdf3.zip
Removed executalbe permission and fixed location of misc files which are installed into XFIGLIBDIR, bug #221243 thank Volkmar Glauche for report. Cleaned old ebuild.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-gfx/xfig')
-rw-r--r--media-gfx/xfig/ChangeLog13
-rw-r--r--media-gfx/xfig/files/xfig-3.2.4-gcc4.patch28
-rw-r--r--media-gfx/xfig/files/xfig-3.2.4-xaw3d.diff17
-rw-r--r--media-gfx/xfig/xfig-3.2.4-r3.ebuild63
-rw-r--r--media-gfx/xfig/xfig-3.2.5-r2.ebuild76
5 files changed, 87 insertions, 110 deletions
diff --git a/media-gfx/xfig/ChangeLog b/media-gfx/xfig/ChangeLog
index a6cb0022e7e5..dffb5d9eeb6d 100644
--- a/media-gfx/xfig/ChangeLog
+++ b/media-gfx/xfig/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-gfx/xfig
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/ChangeLog,v 1.50 2007/07/22 07:28:32 pva Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/ChangeLog,v 1.51 2008/05/11 12:09:54 pva Exp $
+
+*xfig-3.2.5-r2 (11 May 2008)
+
+ 11 May 2008; Peter Volkov <pva@gentoo.org> -files/xfig-3.2.4-gcc4.patch,
+ -files/xfig-3.2.4-xaw3d.diff, -xfig-3.2.4-r3.ebuild,
+ +xfig-3.2.5-r2.ebuild:
+ Removed executalbe permission and fixed location of misc files which are
+ installed into XFIGLIBDIR, bug #221243 thank Volkmar Glauche for report.
+ Cleaned old ebuild.
22 Jul 2007; <pva@gentoo.org> xfig-3.2.4-r3.ebuild, xfig-3.2.5-r1.ebuild:
Removed virtual/x11 dependency.
diff --git a/media-gfx/xfig/files/xfig-3.2.4-gcc4.patch b/media-gfx/xfig/files/xfig-3.2.4-gcc4.patch
deleted file mode 100644
index b5ab193bda94..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.4-gcc4.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -ru xfig.3.2.4/u_fonts.h xfig.3.2.4.new/u_fonts.h
---- xfig.3.2.4/u_fonts.h 2002-03-27 01:18:23.000000000 +0100
-+++ xfig.3.2.4.new/u_fonts.h 2005-12-03 15:21:02.054250392 +0100
-@@ -30,12 +30,6 @@
- /* font number for the "nil" font (when user wants tiny text) */
- #define NILL_FONT NUM_FONTS
-
--extern int psfontnum();
--extern int latexfontnum();
--extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
--extern struct _fstruct ps_fontinfo[];
--extern struct _fstruct latex_fontinfo[];
--
- /* element of linked list for each font
- The head of list is for the different font NAMES,
- and the elements of this list are for each different
-@@ -61,5 +55,11 @@
- * sizes */
- };
-
-+extern int psfontnum();
-+extern int latexfontnum();
-+extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
-+extern struct _fstruct ps_fontinfo[];
-+extern struct _fstruct latex_fontinfo[];
-+
- int x_fontnum();
- #endif /* U_FONTS_H */
diff --git a/media-gfx/xfig/files/xfig-3.2.4-xaw3d.diff b/media-gfx/xfig/files/xfig-3.2.4-xaw3d.diff
deleted file mode 100644
index 2365562e7da6..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.4-xaw3d.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- xfig.3.2.4.orig/Imakefile 2003-02-23 14:04:25.000000000 +0100
-+++ xfig.3.2.4/Imakefile 2003-02-23 14:12:31.000000000 +0100
-@@ -105,10 +105,10 @@
- XCOMM Then be sure to change the XAW3DINC to point to the directory where your
- XCOMM 3D Athena widget headers are located
-
--XCOMM #define XAW3D
-+#define XAW3D
-
- #ifdef XAW3D
--XAW3DINC = -I/usr/include/X11/Xaw3d
-+XAW3DINC = -I/usr/X11R6/include/X11/Xaw3d
- DUSEXAW3D = -DXAW3D
- XAWLIB = -lXaw3d
- #endif
-
-
diff --git a/media-gfx/xfig/xfig-3.2.4-r3.ebuild b/media-gfx/xfig/xfig-3.2.4-r3.ebuild
deleted file mode 100644
index 08b82b8077f8..000000000000
--- a/media-gfx/xfig/xfig-3.2.4-r3.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/xfig-3.2.4-r3.ebuild,v 1.10 2007/07/22 07:28:32 pva Exp $
-
-inherit eutils multilib
-
-MY_P=${PN}.${PV}
-S=${WORKDIR}/${MY_P}
-SHAPE_P=shape-patch.${PV}-shape-1.1
-
-DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window."
-HOMEPAGE="http://www.xfig.org"
-SRC_URI="http://www.xfig.org/xfigdist/${MY_P}.full.tar.gz
- http://www.ctan.org/tex-archive/graphics/transfig-shapepatch/${SHAPE_P}.tar.gz
- mirror://gentoo/${P}-gentoo.diff.bz2"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
-IUSE=""
-
-RDEPEND="x11-libs/libXaw
- x11-libs/libXp
- x11-libs/Xaw3d
- media-libs/jpeg
- media-libs/libpng
- media-gfx/transfig
- media-libs/netpbm"
-DEPEND="${RDEPEND}
- x11-misc/imake
- app-text/rman
- x11-proto/xproto
- x11-proto/inputproto
- x11-libs/libXi"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- epatch ${WORKDIR}/${P}-gentoo.diff
- epatch ${FILESDIR}/${P}-xaw3d.diff
- epatch ../${SHAPE_P}/${PN}.${SHAPE_P#*.}.patch # bug #20877
- epatch ${FILESDIR}/${P}-gcc4.patch
-}
-
-src_compile() {
- xmkmf || die
- emake BINDIR=/usr/bin XFIGLIBDIR=/usr/$(get_libdir)/xfig || die
-}
-
-src_install() {
-
- emake -j1 \
- DESTDIR=${D} \
- BINDIR=/usr/bin \
- XFIGLIBDIR=/usr/$(get_libdir)/xfig \
- MANDIR=/usr/share/man/man1 \
- MANSUFFIX=1 \
- install install.all || die
-
- insinto /usr/share/doc/${P}
- doins README FIGAPPS CHANGES LATEX.AND.XFIG
- doins ../${SHAPE_P}/shapepatch.README
-}
diff --git a/media-gfx/xfig/xfig-3.2.5-r2.ebuild b/media-gfx/xfig/xfig-3.2.5-r2.ebuild
new file mode 100644
index 000000000000..7cb028800aaa
--- /dev/null
+++ b/media-gfx/xfig/xfig-3.2.5-r2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/xfig-3.2.5-r2.ebuild,v 1.1 2008/05/11 12:09:54 pva Exp $
+
+inherit eutils multilib
+
+MY_P=${PN}.${PV}
+DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window."
+HOMEPAGE="http://www.xfig.org"
+SRC_URI="http://www.xfig.org/software/xfig/3.2.5/${MY_P}.full.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXaw
+ x11-libs/libXp
+ x11-libs/Xaw3d
+ media-libs/jpeg
+ media-libs/libpng
+ >=media-gfx/transfig-3.2.5-r1
+ media-libs/netpbm"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-libs/libXi"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # We do not have nescape. Let's use firefox instead...
+ sed -i "s+netscape+firefox+g" Fig.ad
+ find "${S}" -type f -exec chmod -x \{\} \;
+}
+
+sed_Imakefile() {
+ # see Imakefile for details
+ vars2subs="BINDIR=/usr/bin
+ PNGINC=-I/usr/include
+ JPEGLIBDIR=/usr/$(get_libdir)
+ JPEGINC=-I/usr/include
+ XPMLIBDIR=/usr/$(get_libdir)
+ XPMINC=-I/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ XFIGLIBDIR=/usr/share/xfig
+ XFIGDOCDIR=/usr/share/doc/${P}
+ MANDIR=/usr/share/man/man\$\(MANSUFFIX\)
+ CC=$(tc-getCC)"
+
+ for variable in ${vars2subs} ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+ done
+}
+
+src_compile() {
+ sed_Imakefile Imakefile
+
+ xmkmf || die
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+ USRLIBDIR=/usr/$(get_libdir) || die
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install.all || die
+
+ insinto /usr/share/doc/${P}
+ doins README FIGAPPS CHANGES LATEX.AND.XFIG
+}