Gentoo Archives: gentoo-commits

From: "Krzysiek Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/scite: ChangeLog scite-1.79.ebuild
Date: Sun, 02 Aug 2009 23:27:25
Message-Id: E1MXkSY-0004Fp-Td@stork.gentoo.org
1 nelchael 09/08/02 23:27:22
2
3 Modified: ChangeLog
4 Added: scite-1.79.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.86 app-editors/scite/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?rev=1.86&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?rev=1.86&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?r1=1.85&r2=1.86
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v
19 retrieving revision 1.85
20 retrieving revision 1.86
21 diff -u -r1.85 -r1.86
22 --- ChangeLog 25 Jul 2009 10:15:26 -0000 1.85
23 +++ ChangeLog 2 Aug 2009 23:27:22 -0000 1.86
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-editors/scite
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.85 2009/07/25 10:15:26 nelchael Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.86 2009/08/02 23:27:22 nelchael Exp $
29 +
30 +*scite-1.79 (02 Aug 2009)
31 +
32 + 02 Aug 2009; Krzysiek Pawlik <nelchael@g.o> +scite-1.79.ebuild,
33 + +files/scite-1.79-install.patch, +files/scite-1.79-no-lua.patch:
34 + Version bump.
35
36 25 Jul 2009; Krzysiek Pawlik <nelchael@g.o> -scite-1.76.ebuild,
37 -files/scite-1.76-install.patch, -files/scite-1.76-no-lua.patch,
38
39
40
41 1.1 app-editors/scite/scite-1.79.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/scite-1.79.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/scite-1.79.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scite-1.79.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-1.79.ebuild,v 1.1 2009/08/02 23:27:22 nelchael Exp $
51
52 inherit toolchain-funcs eutils
53
54 MY_PV=${PV//./}
55 DESCRIPTION="A very powerful editor for programmers"
56 HOMEPAGE="http://scintilla.sourceforge.net/SciTE.html"
57 SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz"
58
59 LICENSE="Scintilla"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
62 IUSE="lua"
63
64 RDEPEND=">=x11-libs/gtk+-2
65 lua? ( >=dev-lang/lua-5 )"
66 DEPEND="${RDEPEND}
67 dev-util/pkgconfig
68 >=sys-apps/sed-4"
69
70 S="${WORKDIR}/${PN}/gtk"
71
72 src_unpack() {
73 unpack ${A}
74 cd "${WORKDIR}/scintilla/gtk"
75 sed -i makefile \
76 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
77 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
78 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
79 -e "s#-Os##" \
80 || die "error patching makefile"
81
82 cd "${S}"
83 sed -i makefile \
84 -e 's#usr/local#usr#g' \
85 -e 's#/gnome/apps/Applications#/applications#' \
86 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
87 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
88 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
89 -e 's#${D}##' \
90 -e 's#-g root#-g 0#' \
91 -e "s#-Os##" \
92 || die "error patching makefile"
93 cd "${WORKDIR}"
94 epatch "${FILESDIR}/${P}-install.patch"
95 epatch "${FILESDIR}/${P}-no-lua.patch"
96 }
97
98 src_compile() {
99 make -C ../../scintilla/gtk || die "prep make failed"
100 if use lua; then
101 emake || die "make failed"
102 else
103 emake NO_LUA=1 || die "make failed"
104 fi
105 }
106
107 src_install() {
108 dodir /usr/bin
109 dodir /usr/share/{pixmaps,applications}
110
111 make prefix="${D}/usr" install || die
112
113 # we have to keep this because otherwise it'll break upgrading
114 mv "${D}/usr/bin/SciTE" "${D}/usr/bin/scite"
115 dosym /usr/bin/scite /usr/bin/SciTE
116
117 # replace .desktop file with our own working version
118 insinto /usr/share/applications
119 rm -f "${D}/usr/share/applications/SciTE.desktop"
120 doins "${FILESDIR}/scite.desktop"
121
122 doman ../doc/scite.1
123 dodoc ../README
124 }