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