/[gentoo-x86]/app-editors/scite/scite-3.1.0.ebuild
Gentoo

Contents of /app-editors/scite/scite-3.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Jan 29 21:11:51 2013 UTC (19 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump to 3.2.4, remove old.

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-3.1.0.ebuild,v 1.7 2012/09/05 07:10:16 jlec Exp $
4
5 EAPI="4"
6
7 inherit toolchain-funcs eutils
8
9 MY_PV=${PV//./}
10 DESCRIPTION="A very powerful editor for programmers"
11 HOMEPAGE="http://www.scintilla.org/SciTE.html"
12 SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz"
13
14 LICENSE="Scintilla"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
17 IUSE="lua"
18
19 RDEPEND="dev-libs/glib
20 x11-libs/cairo
21 x11-libs/gtk+:2
22 x11-libs/gdk-pixbuf
23 x11-libs/pango
24 lua? ( >=dev-lang/lua-5 )"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig
27 >=sys-apps/sed-4"
28
29 S="${WORKDIR}/${PN}/gtk"
30
31 src_prepare() {
32 cd "${WORKDIR}/scintilla/gtk"
33 sed -i makefile \
34 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
35 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
36 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
37 -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
38 -e "s#-Os##" \
39 || die "error patching makefile"
40
41 cd "${WORKDIR}/scite/gtk"
42 sed -i makefile \
43 -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \
44 || die "error patching makefile"
45
46 cd "${S}"
47 sed -i makefile \
48 -e 's#usr/local#usr#g' \
49 -e 's#/gnome/apps/Applications#/applications#' \
50 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
51 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
52 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
53 -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
54 -e 's#${D}##' \
55 -e 's#-g root#-g 0#' \
56 -e "s#-Os##" \
57 || die "error patching makefile"
58 cd "${WORKDIR}"
59 epatch "${FILESDIR}/${PN}-3.0.1-no-lua.patch"
60 }
61
62 src_compile() {
63 emake -C ../../scintilla/gtk
64 if use lua; then
65 emake
66 else
67 emake NO_LUA=1
68 fi
69 }
70
71 src_install() {
72 dodir /usr/bin
73 dodir /usr/share/{pixmaps,applications}
74
75 emake prefix="${ED}/usr" install
76
77 # we have to keep this because otherwise it'll break upgrading
78 mv "${ED}/usr/bin/SciTE" "${ED}/usr/bin/scite" || die
79 dosym /usr/bin/scite /usr/bin/SciTE
80
81 # replace .desktop file with our own working version
82 rm -f "${ED}/usr/share/applications/SciTE.desktop"
83 domenu "${FILESDIR}/scite.desktop"
84
85 doman ../doc/scite.1
86 dodoc ../README
87 }

  ViewVC Help
Powered by ViewVC 1.1.20