summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Torokhov <torokhov-s-a@yandex.ru>2020-11-05 01:03:56 +0300
committerSam James <sam@gentoo.org>2020-11-08 11:53:24 +0000
commita36b62091413f5756c9c72e77e2064489c12a17a (patch)
tree7c3636a6b2058d9381637d4dd10a5ce0fdad0a32 /app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild
parentmedia-gfx/gimp: 2.10.x switch to SLOT="0/2" (diff)
downloadgentoo-a36b62091413f5756c9c72e77e2064489c12a17a.tar.gz
gentoo-a36b62091413f5756c9c72e77e2064489c12a17a.tar.bz2
gentoo-a36b62091413f5756c9c72e77e2064489c12a17a.zip
app-misc/emelfm2: switch media-gfx/gimp-2.10 to SLOT="0/2"
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild')
-rw-r--r--app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild106
1 files changed, 106 insertions, 0 deletions
diff --git a/app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild b/app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild
new file mode 100644
index 000000000000..c9b7cfd77a20
--- /dev/null
+++ b/app-misc/emelfm2/emelfm2-0.9.1-r5.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit desktop flag-o-matic multilib toolchain-funcs xdg
+
+DESCRIPTION="A file manager that implements the popular two-pane design"
+HOMEPAGE="https://github.com/tom2tom/emelfm2"
+SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="acl ansi gimp +gtk3 kernel_linux nls policykit spell udisks"
+
+EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ !gtk3? ( >=x11-libs/gtk+-2.12:2 )
+ acl? ( sys-apps/acl )
+ gimp? ( media-gfx/gimp:0/2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ policykit? ( sys-auth/polkit )
+ spell? ( >=app-text/gtkspell-2.0.14:2 )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ udisks? ( sys-fs/udisks:2 )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+REQUIRED_USE="
+ spell? ( !gtk3 )
+"
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
+ -e 's:@$(CC):$(CC):g' \
+ -e 's:dbus-glib-1::' \
+ Makefile || die
+
+ local lingua
+ for lingua in ${EMELFM2_LINGUAS[@]}; do
+ has ${lingua} ${LINGUAS-${lingua}} || mv po/${lingua}.po{,.unwanted}
+ done
+}
+
+src_configure() {
+ append-cflags -fcommon
+
+ myemelconf=(
+ $(usex acl WITH_ACL=1 WITH_ACL=0)
+ $(usex ansi WITH_OUTPUTSTYLES=1 WITH_OUTPUTSTYLES=0)
+ $(usex gimp WITH_THUMBS=1 WITH_THUMBS=0)
+ $(usex gtk3 'GTK3=1 GTK2=0' 'GTK3=0 GTK2=1')
+ $(usex kernel_linux WITH_KERNELFAM=1 WITH_KERNELFAM=0)
+ $(usex nls I18N=1 I18N=0)
+ $(usex policykit WITH_POLKIT=1 WITH_POLKIT=0)
+ $(usex spell EDITOR_SPELLCHECK=1 EDITOR_SPELLCHECK=0)
+ $(usex udisks WITH_UDISKS=1 WITH_UDISKS=0)
+ DOC_DIR="${EROOT}/usr/share/doc/${PF}"
+ DOCS_VERSION=1
+ STRIP=0
+ WITH_TRANSPARENCY=1
+ )
+}
+
+src_compile() {
+ tc-export CC
+
+ emake \
+ ${myemelconf[@]} \
+ LIB_DIR="/usr/$(get_libdir)" \
+ PREFIX="/usr"
+}
+
+src_install() {
+ mkdir -p "${ED}/${DOC_DIR}" || die
+
+ emake \
+ ${myemelconf[@]} \
+ LIB_DIR="${D}/usr/$(get_libdir)" \
+ PREFIX="${D}/usr" \
+ XDG_DESKTOP_DIR="${D}/usr/share/applications" \
+ DOC_DIR="${D}/usr/share/doc/${PF}" \
+ install $(usex nls install_i18n '')
+
+ newicon icons/${PN}_48.png ${PN}.png
+
+ rm "${ED}"/usr/share/doc/${PF}/LGPL || die
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}