1 |
ottxor 13/03/04 01:46:09 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xfig-3.2.5b-r3.ebuild |
5 |
Log: |
6 |
fixed bugs #412753 and #405475, added prefix support |
7 |
|
8 |
(Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key C2000586) |
9 |
|
10 |
Revision Changes Path |
11 |
1.78 media-gfx/xfig/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/ChangeLog?rev=1.78&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/ChangeLog?rev=1.78&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/ChangeLog?r1=1.77&r2=1.78 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/xfig/ChangeLog,v |
20 |
retrieving revision 1.77 |
21 |
retrieving revision 1.78 |
22 |
diff -u -r1.77 -r1.78 |
23 |
--- ChangeLog 16 Feb 2013 12:44:03 -0000 1.77 |
24 |
+++ ChangeLog 4 Mar 2013 01:46:09 -0000 1.78 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-gfx/xfig |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/ChangeLog,v 1.77 2013/02/16 12:44:03 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/ChangeLog,v 1.78 2013/03/04 01:46:09 ottxor Exp $ |
30 |
+ |
31 |
+*xfig-3.2.5b-r3 (04 Mar 2013) |
32 |
+ |
33 |
+ 04 Mar 2013; Christoph Junghans <ottxor@g.o> |
34 |
+ +files/xfig-3.2.5b-darwin.patch, +files/xfig-3.2.5b-edit-menu.patch, |
35 |
+ +files/xfig-3.2.5b-solaris.patch, +xfig-3.2.5b-r3.ebuild: |
36 |
+ fixed bugs #412753 and #405475, added prefix support |
37 |
|
38 |
16 Feb 2013; Pacho Ramos <pacho@g.o> metadata.xml: |
39 |
Cleanup due bug #96436 |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-gfx/xfig/xfig-3.2.5b-r3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/xfig-3.2.5b-r3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/xfig-3.2.5b-r3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: xfig-3.2.5b-r3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/xfig/xfig-3.2.5b-r3.ebuild,v 1.1 2013/03/04 01:46:09 ottxor Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit eutils multilib |
57 |
|
58 |
MY_P=${PN}.${PV} |
59 |
|
60 |
DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window." |
61 |
HOMEPAGE="http://www.xfig.org" |
62 |
SRC_URI="mirror://sourceforge/mcj/${MY_P}.full.tar.gz" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" |
67 |
IUSE="nls" |
68 |
|
69 |
RDEPEND="x11-libs/libXaw |
70 |
x11-libs/libXp |
71 |
x11-libs/libXaw3d |
72 |
nls? ( x11-libs/libXaw3d[unicode] ) |
73 |
x11-libs/libXi |
74 |
virtual/jpeg |
75 |
media-libs/libpng |
76 |
media-fonts/font-misc-misc |
77 |
media-fonts/urw-fonts |
78 |
>=media-gfx/transfig-3.2.5-r1 |
79 |
media-libs/netpbm" |
80 |
DEPEND="${RDEPEND} |
81 |
x11-misc/imake |
82 |
x11-proto/xproto |
83 |
x11-proto/inputproto" |
84 |
|
85 |
S=${WORKDIR}/${MY_P} |
86 |
|
87 |
sed_Imakefile() { |
88 |
# see Imakefile for details |
89 |
vars2subs=( BINDIR="${EPREFIX}"/usr/bin |
90 |
PNGINC=-I"${EPREFIX}"/usr/include |
91 |
JPEGLIBDIR="${EPREFIX}"/usr/$(get_libdir) |
92 |
JPEGINC=-I"${EPREFIX}"/usr/include |
93 |
XPMLIBDIR="${EPREFIX}"/usr/$(get_libdir) |
94 |
XPMINC=-I"${EPREFIX}"/usr/include/X11 |
95 |
USEINLINE=-DUSE_INLINE |
96 |
XFIGLIBDIR="${EPREFIX}"/usr/share/xfig |
97 |
XFIGDOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
98 |
MANDIR="${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)" |
99 |
"CC=$(tc-getCC)" ) |
100 |
|
101 |
for variable in "${vars2subs[@]}" ; do |
102 |
varname=${variable%%=*} |
103 |
varval=${variable##*=} |
104 |
sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@" |
105 |
done |
106 |
if use nls; then |
107 |
sed -i "s:^\(XCOMM\)*[[:space:]]*\(#define I18N\).*$:\2:" "$@" |
108 |
# Fix #405475 and #426780 by Markus Peloquin #405475 comment 17 |
109 |
sed -i 's:^I18N_DEFS[[:space:]]*=.*:& -DXAW_INTERNATIONALIZATION:' "$@" |
110 |
fi |
111 |
if has_version '>=x11-libs/libXaw3d-1.5e'; then |
112 |
einfo "x11-libs/libXaw3d 1.5e and abover installed" |
113 |
sed -i "s:^\(XCOMM\)*[[:space:]]*\(#define XAW3D1_5E\).*$:\2:" "$@" |
114 |
fi |
115 |
} |
116 |
|
117 |
src_prepare() { |
118 |
# Permissions are really crazy here |
119 |
chmod -R go+rX . |
120 |
find . -type f -exec chmod a-x '{}' \; |
121 |
epatch "${FILESDIR}/${P}-figparserstack.patch" #297379 |
122 |
epatch "${FILESDIR}/${P}-spelling.patch" |
123 |
epatch "${FILESDIR}/${P}-papersize_b1.patch" |
124 |
epatch "${FILESDIR}/${P}-pdfimport_mediabox.patch" |
125 |
epatch "${FILESDIR}/${P}-network_images.patch" |
126 |
epatch "${FILESDIR}/${P}-app-defaults.patch" |
127 |
epatch "${FILESDIR}/${P}-zoom-during-edit.patch" |
128 |
epatch "${FILESDIR}/${P}-urwfonts.patch" |
129 |
epatch "${FILESDIR}/${P}-mkstemp.patch" #264575 |
130 |
epatch "${FILESDIR}/${P}-CVE-2010-4262.patch" #348344 |
131 |
epatch "${FILESDIR}/${P}-libpng-1.5.patch" #356753 |
132 |
#https://bugzilla.redhat.com/show_bug.cgi?id=657290 |
133 |
epatch "${FILESDIR}/xfig-3.2.5b-fix-eps-reading.patch" |
134 |
epatch "${FILESDIR}/${P}-edit-menu.patch" #412753 |
135 |
|
136 |
sed_Imakefile Imakefile |
137 |
sed -e "s:/usr/lib/X11/xfig:${EPREFIX}/usr/share/doc/${PF}:" \ |
138 |
-i Doc/xfig.man -i Doc/xfig_man.html || die |
139 |
|
140 |
#got merge upstream, remove in next release |
141 |
epatch "${FILESDIR}"/${P}-darwin.patch |
142 |
epatch "${FILESDIR}"/${P}-solaris.patch |
143 |
} |
144 |
|
145 |
src_compile() { |
146 |
local EXTCFLAGS=${CFLAGS} |
147 |
xmkmf || die |
148 |
[[ ${CHOST} == *-solaris* ]] && EXTCFLAGS="${EXTCFLAGS} -D_POSIX_SOURCE" |
149 |
emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${EXTCFLAGS}" \ |
150 |
USRLIBDIR="${EPREFIX}"/usr/$(get_libdir) |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
emake -j1 DESTDIR="${D}" install.all |
155 |
|
156 |
dodoc README FIGAPPS CHANGES LATEX.AND.XFIG |
157 |
|
158 |
doicon xfig.png |
159 |
make_desktop_entry xfig Xfig xfig |
160 |
} |