From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/emelfm2/
Date: Tue, 28 Jul 2020 13:17:51 +0000 (UTC) [thread overview]
Message-ID: <1595942264.e8f4436841661f6603fd963cbe740e5150a5a947.jer@gentoo> (raw)
commit: e8f4436841661f6603fd963cbe740e5150a5a947
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 28 13:11:31 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Jul 28 13:17:44 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8f44368
app-misc/emelfm2: EAPI=7
Also:
- Use x11-libs/gtk+:3 by default
- Call xdg_desktop_database_update
- Set CFLAGS+=-fcommon
- Fix DOC_DIR
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Closes: https://bugs.gentoo.org/734240
Closes: https://bugs.gentoo.org/show_bug.cgi?id=710808
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
app-misc/emelfm2/emelfm2-0.9.1-r3.ebuild | 104 +++++++++++++++++++++++++++++++
1 file changed, 104 insertions(+)
diff --git a/app-misc/emelfm2/emelfm2-0.9.1-r3.ebuild b/app-misc/emelfm2/emelfm2-0.9.1-r3.ebuild
new file mode 100644
index 00000000000..9e1c2ef44b6
--- /dev/null
+++ b/app-misc/emelfm2/emelfm2-0.9.1-r3.ebuild
@@ -0,0 +1,104 @@
+# 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 )
+ 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 )
+"
+
+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
+}
next reply other threads:[~2020-07-28 13:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-28 13:17 Jeroen Roovers [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-02-06 15:04 [gentoo-commits] repo/gentoo:master commit in: app-misc/emelfm2/ Jonas Stein
2021-06-01 0:40 Sam James
2021-03-27 9:11 Andreas Sturmlechner
2021-02-07 15:04 Andreas Sturmlechner
2020-11-12 12:28 Sam James
2020-11-08 12:02 Sam James
2020-09-26 19:40 Aaron Bauman
2020-07-28 13:49 Jeroen Roovers
2019-03-28 23:12 Patrice Clement
2018-01-07 11:21 Ulrich Müller
2016-06-21 6:33 Jeroen Roovers
2016-06-21 6:33 Jeroen Roovers
2016-04-19 13:12 Michał Górny
2016-04-18 8:13 Patrice Clement
2016-04-17 22:12 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1595942264.e8f4436841661f6603fd963cbe740e5150a5a947.jer@gentoo \
--to=jer@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox