/[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.1 - (hide annotations) (download)
Fri Nov 16 15:29:40 2012 UTC (7 years, 3 months ago) by jer
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 jer 1.1 # Copyright 1999-2012 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.0.ebuild,v 1.3 2012/05/03 19:41:32 jdhore Exp $
4    
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     KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
15     IUSE="acl fam gimp kernel_linux nls policykit spell udev"
16    
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     udev? ( sys-fs/udisks:0 )"
25     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     $(emel_use udev WITH_DEVKIT)
45     $(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