/[gentoo-x86]/app-misc/emelfm2/emelfm2-0.9.0.ebuild
Gentoo

Contents of /app-misc/emelfm2/emelfm2-0.9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 4 16:46:39 2015 UTC (4 years, 7 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Allow to use udisks-2 (#439628), drop old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

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-misc/emelfm2/emelfm2-0.9.0.ebuild,v 1.3 2014/07/24 11:55:53 ssuominen Exp $
4
5 EAPI=5
6 inherit eutils multilib toolchain-funcs
7
8 DESCRIPTION="A file manager that implements the popular two-pane design"
9 HOMEPAGE="http://emelfm2.net/"
10 SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
11
12 LICENSE="GPL-3 LGPL-3"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="acl ansi gimp gtk3 kernel_linux nls policykit spell udisks"
16
17 EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
18 IUSE+=" ${EMELFM2_LINGUAS[@]/#/linguas_}"
19
20 COMMON_DEPEND="
21 >=dev-libs/glib-2.26:2
22 !gtk3? ( >=x11-libs/gtk+-2.12:2 )
23 gtk3? ( x11-libs/gtk+:3 )
24 acl? ( sys-apps/acl )
25 gimp? ( media-gfx/gimp )
26 policykit? ( sys-auth/polkit )
27 spell? ( >=app-text/gtkspell-2.0.14:2 )
28 "
29 RDEPEND="
30 ${COMMON_DEPEND}
31 udisks? ( sys-fs/udisks:0 )
32 "
33 DEPEND="
34 ${COMMON_DEPEND}
35 virtual/pkgconfig
36 nls? ( sys-devel/gettext )
37 "
38
39 RESTRICT="test"
40
41 src_prepare() {
42 sed -i \
43 -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
44 -e 's:@$(CC):$(CC):g' \
45 -e 's:dbus-glib-1::' \
46 Makefile || die
47
48 local lingua
49 for lingua in ${EMELFM2_LINGUAS[@]}; do
50 use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
51 done
52 }
53
54 src_configure() {
55 myemelconf=(
56 $(usex acl WITH_ACL=1 WITH_ACL=0)
57 $(usex ansi WITH_OUTPUTSTYLES=1 WITH_OUTPUTSTYLES=0)
58 $(usex gimp WITH_THUMBS=1 WITH_THUMBS=0)
59 $(usex gtk3 'GTK3=1 GTK2=0' 'GTK3=0 GTK2=1')
60 $(usex kernel_linux WITH_KERNELFAM=1 WITH_KERNELFAM=0)
61 $(usex nls I18N=1 I18N=0)
62 $(usex policykit WITH_POLKIT=1 WITH_POLKIT=0)
63 $(usex spell EDITOR_SPELLCHECK=1 EDITOR_SPELLCHECK=0)
64 $(usex udisks WITH_DEVKIT=1 WITH_DEVKIT=0)
65 DOCS_VERSION=1
66 STRIP=0
67 WITH_TRANSPARENCY=1
68 )
69 }
70
71 src_compile() {
72 tc-export CC
73 emake \
74 LIB_DIR="/usr/$(get_libdir)" \
75 PREFIX="/usr" \
76 ${myemelconf[@]}
77 }
78
79 src_install() {
80 emake \
81 LIB_DIR="${D}/usr/$(get_libdir)" \
82 PREFIX="${D}/usr" \
83 ${myemelconf[@]} \
84 install \
85 $(usex nls install_i18n '')
86
87 newicon icons/${PN}_48.png ${PN}.png
88 }

  ViewVC Help
Powered by ViewVC 1.1.20