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

Contents of /app-misc/emelfm2/emelfm2-0.8.2.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.8.2.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 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=">=dev-libs/glib-2.26:2
21 >=x11-libs/gtk+-2.12:2
22 acl? ( sys-apps/acl )
23 gimp? ( media-gfx/gimp )
24 policykit? ( sys-auth/polkit )
25 spell? ( >=app-text/gtkspell-2.0.14:2 )"
26 RDEPEND="${COMMON_DEPEND}
27 udisks? ( sys-fs/udisks:0 )"
28 DEPEND="${COMMON_DEPEND}
29 virtual/pkgconfig
30 nls? ( sys-devel/gettext )"
31
32 RESTRICT="test"
33
34 src_prepare() {
35 sed -i \
36 -e 's:dbus-glib-1::' \
37 -e 's:@$(CC):$(CC):g' \
38 -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
39 Makefile || die
40
41 local lingua
42 for lingua in ${EMELFM2_LINGUAS[@]}; do
43 use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
44 done
45 }
46
47 src_configure() {
48 emel_use() {
49 use ${1} && echo "${2}=1" || echo "${2}=0"
50 }
51
52 #363813
53 myemelconf=(
54 $(emel_use acl WITH_ACL)
55 $(emel_use ansi WITH_OUTPUTSTYLES)
56 $(emel_use gimp WITH_THUMBS)
57 $(emel_use kernel_linux WITH_KERNELFAM)
58 $(emel_use nls I18N)
59 $(emel_use policykit WITH_POLKIT)
60 $(emel_use spell EDITOR_SPELLCHECK)
61 $(emel_use udisks WITH_DEVKIT)
62 DOCS_VERSION=1
63 GTK3=0
64 STRIP=0
65 WITH_TRANSPARENCY=1
66 )
67 }
68
69 src_compile() {
70 tc-export CC
71 emake \
72 LIB_DIR="/usr/$(get_libdir)" \
73 PREFIX="/usr" \
74 ${myemelconf[@]}
75 }
76
77 src_install() {
78 emake \
79 LIB_DIR="${D}/usr/$(get_libdir)" \
80 PREFIX="${D}/usr" \
81 ${myemelconf[@]} \
82 $( use nls && echo install_i18n ) \
83 install
84
85 newicon icons/${PN}_48.png ${PN}.png
86 }

  ViewVC Help
Powered by ViewVC 1.1.20