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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 12 10:53:42 2014 UTC (9 months, 1 week ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Version bump by David Abbott <dabbott@gentoo.org>. Bug #497724

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2014 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.9.ebuild,v 1.1 2012/12/03 19:55:30 hwoarang Exp $
4
5 EAPI="4"
6
7 WX_GTK_VER="2.8"
8
9 inherit autotools wxwidgets
10
11 DESCRIPTION="XML Copy Editor is a fast, free, validating XML editor"
12 HOMEPAGE="http://xml-copy-editor.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/xml-copy-editor/${P}.tar.gz
14 guidexml? ( mirror://gentoo/GuideXML-templates.tar.gz )"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
19 IUSE="aqua guidexml"
20
21 RDEPEND=">=dev-libs/libxml2-2.7.3-r1
22 dev-libs/libxslt
23 dev-libs/xerces-c[icu]
24 dev-libs/libpcre
25 app-text/aspell
26 !aqua? ( x11-libs/wxGTK:2.8[X] )
27 aqua? ( x11-libs/wxGTK:2.8[aqua] )"
28 DEPEND="${RDEPEND}
29 dev-libs/boost"
30
31 DOCS=( AUTHORS ChangeLog README NEWS )
32
33 src_prepare() {
34 # fix desktop file
35 sed -i -e '/Categories/s/Application;//' \
36 -e '/Icon/s/.png//' \
37 -e 's/\r//g' \
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.ac || die 'sed on configure.ac failed'
43 eautoreconf
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install
48
49 if use guidexml; then
50 insinto /usr/share/xmlcopyeditor/templates/
51 for TEMPLATE in "${WORKDIR}"/GuideXML-templates/*.xml; do
52 newins "${TEMPLATE}" "${TEMPLATE##*/}"
53 done
54 fi
55
56 }

  ViewVC Help
Powered by ViewVC 1.1.20