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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Jul 24 11:55:53 2014 UTC (5 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +5 -5 lines
Rename USE="udev" to USE="udisks"

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 ssuominen 1.5 # Copyright 1999-2014 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.5 # $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.8.1.ebuild,v 1.4 2013/09/23 09:47:35 ssuominen Exp $
4 jer 1.1
5     EAPI=4
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 ago 1.3 KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
15 ssuominen 1.5 IUSE="acl gimp kernel_linux nls policykit spell udisks"
16 jer 1.1
17     COMMON_DEPEND=">=dev-libs/glib-2.26:2
18     >=x11-libs/gtk+-2.12:2
19     acl? ( sys-apps/acl )
20     gimp? ( media-gfx/gimp )
21     policykit? ( sys-auth/polkit )
22     spell? ( >=app-text/gtkspell-2.0.14:2 )"
23     RDEPEND="${COMMON_DEPEND}
24 ssuominen 1.5 udisks? ( sys-fs/udisks:0 )"
25 jer 1.1 DEPEND="${COMMON_DEPEND}
26     virtual/pkgconfig
27     nls? ( sys-devel/gettext )"
28    
29     RESTRICT="test"
30    
31     pkg_setup() {
32     emel_use() {
33     use ${1} && echo "${2}=1" || echo "${2}=0"
34     }
35    
36     #363813
37     myemelconf=(
38     GTK3=0
39     DOCS_VERSION=1
40     $(emel_use nls I18N)
41     WITH_TRANSPARENCY=1
42     $(emel_use kernel_linux WITH_KERNELFAM)
43     $(emel_use spell EDITOR_SPELLCHECK)
44 ssuominen 1.5 $(emel_use udisks WITH_DEVKIT)
45 jer 1.1 $(emel_use gimp WITH_THUMBS)
46     $(emel_use acl WITH_ACL)
47     $(emel_use policykit WITH_POLKIT)
48     STRIP=0
49     )
50     }
51    
52     src_prepare() {
53     sed -i \
54     -e 's:dbus-glib-1::' \
55     -e 's:@$(CC):$(CC):g' \
56     -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
57     Makefile || die
58     }
59    
60     src_compile() {
61     tc-export CC
62     emake LIB_DIR="/usr/$(get_libdir)" PREFIX="/usr" \
63     ${myemelconf[@]}
64     }
65    
66     src_install() {
67     emake LIB_DIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" \
68     ${myemelconf[@]} install $( use nls && echo install_i18n )
69     newicon icons/${PN}_48.png ${PN}.png
70     }

  ViewVC Help
Powered by ViewVC 1.1.20