/[gentoo-x86]/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.0.6.ebuild
Gentoo

Contents of /app-editors/xmlcopyeditor/xmlcopyeditor-1.2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Apr 5 09:27:26 2013 UTC (19 months, 3 weeks ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +6 -3 lines
Fix building with gcc 4.8, wrt bug #464280. Thanks to Patrick Lauer for discovering this issue and David Abbott for providing patch

(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.0.6.ebuild,v 1.6 2012/11/27 10:13:16 pinkbyte Exp $
4
5 EAPI="4"
6
7 WX_GTK_VER="2.8"
8 MY_P=${P}-2
9
10 inherit autotools eutils wxwidgets
11
12 DESCRIPTION="XML Copy Editor is a fast, free, validating XML editor"
13 HOMEPAGE="http://xml-copy-editor.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/xml-copy-editor/${MY_P}.tar.gz
15 guidexml? ( mirror://gentoo/GuideXML-templates.tar.gz )"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
20 IUSE="aqua guidexml"
21
22 RDEPEND=">=dev-libs/libxml2-2.7.3-r1
23 dev-libs/libxslt
24 dev-libs/xerces-c[icu]
25 dev-libs/libpcre
26 app-text/aspell
27 !aqua? ( x11-libs/wxGTK:2.8[X] )
28 aqua? ( x11-libs/wxGTK:2.8[aqua] )"
29 DEPEND="${RDEPEND}
30 dev-libs/boost"
31
32 DOCS=( AUTHORS ChangeLog README NEWS )
33
34 src_prepare() {
35 # fix desktop file
36 sed -i -e '/Categories/s/Application;//' \
37 -e '/Icon/s/.png//' \
38 "src/${PN}.desktop" || die "sed on src/${PN}.desktop failed"
39 # bug #440744
40 sed -i -e 's/ -Wall -g -fexceptions//g' \
41 -e '/CXXFLAGS/s/CPPFLAGS/CXXFLAGS/' \
42 configure.in || die 'sed on configure.in failed'
43 # bug #464280
44 epatch "${FILESDIR}/${P}-gcc-4.8.patch"
45
46 eautoreconf
47 }
48
49 src_install() {
50 default
51 if use guidexml; then
52 insinto /usr/share/xmlcopyeditor/templates/
53 for TEMPLATE in "${WORKDIR}"/GuideXML-templates/*.xml; do
54 newins "${TEMPLATE}" "${TEMPLATE##*/}"
55 done
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20