From: | "Patrick Kursawe (phosphan)" <phosphan@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-gfx/xsane: ChangeLog xsane-0.996.ebuild |
Date: | Mon, 29 Sep 2008 11:40:33 |
Message-Id: | E1KkH77-0007e7-5u@stork.gentoo.org |
1 | phosphan 08/09/29 11:40:29 |
2 | |
3 | Modified: ChangeLog |
4 | Added: xsane-0.996.ebuild |
5 | Log: |
6 | Version bump. Does not install the HTML documentation twice any more and uses the .desktop file from upstream. |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.72 media-gfx/xsane/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xsane/ChangeLog?rev=1.72&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xsane/ChangeLog?rev=1.72&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xsane/ChangeLog?r1=1.71&r2=1.72 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v |
19 | retrieving revision 1.71 |
20 | retrieving revision 1.72 |
21 | diff -u -r1.71 -r1.72 |
22 | --- ChangeLog 10 Aug 2008 17:14:54 -0000 1.71 |
23 | +++ ChangeLog 29 Sep 2008 11:40:28 -0000 1.72 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for media-gfx/xsane |
26 | # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.71 2008/08/10 17:14:54 klausman Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.72 2008/09/29 11:40:28 phosphan Exp $ |
29 | + |
30 | +*xsane-0.996 (29 Sep 2008) |
31 | + |
32 | + 29 Sep 2008; Patrick Kursawe <phosphan@g.o> +xsane-0.996.ebuild: |
33 | + Version bump. Does not install the HTML documentation twice any more and |
34 | + uses the .desktop file from upstream. |
35 | |
36 | 10 Aug 2008; Tobias Klausmann <klausman@g.o> xsane-0.995.ebuild: |
37 | Stable on alpha, bug #231189 |
38 | |
39 | |
40 | |
41 | 1.1 media-gfx/xsane/xsane-0.996.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xsane/xsane-0.996.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xsane/xsane-0.996.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: xsane-0.996.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2008 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/xsane-0.996.ebuild,v 1.1 2008/09/29 11:40:28 phosphan Exp $ |
51 | |
52 | inherit eutils |
53 | |
54 | DESCRIPTION="graphical scanning frontend" |
55 | HOMEPAGE="http://www.xsane.org/" |
56 | SRC_URI="http://www.xsane.org/download/${P}.tar.gz" |
57 | |
58 | LICENSE="GPL-2" |
59 | SLOT="0" |
60 | KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
61 | IUSE="nls jpeg png tiff gimp lcms" |
62 | |
63 | RDEPEND="media-gfx/sane-backends |
64 | >=x11-libs/gtk+-2.0 |
65 | jpeg? ( media-libs/jpeg ) |
66 | png? ( media-libs/libpng ) |
67 | tiff? ( media-libs/tiff ) |
68 | gimp? ( media-gfx/gimp ) |
69 | lcms? ( media-libs/lcms )" |
70 | |
71 | DEPEND="${RDEPEND} |
72 | dev-util/pkgconfig" |
73 | |
74 | pkg_setup() { |
75 | export OLDXSANE |
76 | if has_version '<=media-gfx/xsane-0.93'; then |
77 | OLDXSANE="yes" |
78 | else |
79 | OLDXSANE="no" |
80 | fi |
81 | } |
82 | |
83 | src_compile() { |
84 | local extraCPPflags |
85 | if use lcms; then |
86 | extraCPPflags="-I /usr/include/lcms" |
87 | fi |
88 | CPPFLAGS="${CPPFLAGS} ${extraCPPflags}" econf --enable-gtk2 \ |
89 | $(use_enable nls) \ |
90 | $(use_enable jpeg) \ |
91 | $(use_enable png) \ |
92 | $(use_enable tiff) \ |
93 | $(use_enable gimp) \ |
94 | $(use_enable lcms) \ |
95 | || die |
96 | emake || die |
97 | } |
98 | |
99 | src_install() { |
100 | emake DESTDIR="${D}" install || die |
101 | dodoc xsane.* |
102 | # link xsane so it is seen as a plugin in gimp |
103 | if use gimp; then |
104 | local plugindir |
105 | if [ -x /usr/bin/gimptool ]; then |
106 | plugindir="$(gimptool --gimpplugindir)/plug-ins" |
107 | elif [ -x /usr/bin/gimptool-2.0 ]; then |
108 | plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" |
109 | else |
110 | die "Can't find GIMP plugin directory." |
111 | fi |
112 | dodir "${plugindir}" |
113 | dosym /usr/bin/xsane "${plugindir}" |
114 | fi |
115 | newicon src/xsane-48x48.png ${PN}.png |
116 | make_desktop_entry xsane "X-Sane" ${PN} |
117 | } |
118 | |
119 | pkg_postinst() { |
120 | if [ x${OLDXSANE} = 'xyes' ]; then |
121 | ewarn "If you are upgrading from <=xsane-0.93, please make sure to" |
122 | ewarn "remove ~/.sane/xsane/xsane.rc _before_ you start xsane for" |
123 | ewarn "the first time." |
124 | fi |
125 | } |