From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/aegisub/
Date: Wed, 4 Jan 2017 10:15:11 +0000 (UTC) [thread overview]
Message-ID: <1483524859.5d91a8ec6e301561d4ac84de993bf4fa12cc4d0d.soap@gentoo> (raw)
commit: 5d91a8ec6e301561d4ac84de993bf4fa12cc4d0d
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Fri Dec 30 14:07:05 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 4 10:14:19 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d91a8ec
media-video/aegisub: port 3.2.2_p20160518 to xdg-utils eclass
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../aegisub/aegisub-3.2.2_p20160518-r1.ebuild | 147 +++++++++++++++++++++
1 file changed, 147 insertions(+)
diff --git a/media-video/aegisub/aegisub-3.2.2_p20160518-r1.ebuild b/media-video/aegisub/aegisub-3.2.2_p20160518-r1.ebuild
new file mode 100644
index 00000000..44dcfc9
--- /dev/null
+++ b/media-video/aegisub/aegisub-3.2.2_p20160518-r1.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+WX_GTK_VER=3.0
+PLOCALES="ar bg ca cs da de el es eu fa fi fr_FR gl hu id it ja ko nl pl pt_BR pt_PT ru sr_RS sr_RS@latin uk_UA vi zh_CN zh_TW"
+COMMIT_ID="b118fe7e7a5c37540e2f0aa75af105e272bad234"
+
+inherit autotools flag-o-matic gnome2-utils l10n wxwidgets xdg-utils vcs-snapshot
+
+DESCRIPTION="Advanced subtitle editor"
+HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub"
+SRC_URI="https://github.com/Aegisub/Aegisub/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug +fftw openal oss portaudio pulseaudio spell test +uchardet"
+
+# aegisub bundles luabins (https://github.com/agladysh/luabins).
+# Unfortunately, luabins upstream is practically dead since 2010.
+# Thus unbundling luabins isn't worth the effort.
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,debug?]
+ dev-lang/luajit:2[lua52compat]
+ dev-libs/boost:=[icu,nls,threads]
+ dev-libs/icu:=
+ media-libs/ffmpegsource:=
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libass:=[fontconfig]
+ sys-libs/zlib
+ virtual/libiconv
+ virtual/opengl
+ alsa? ( media-libs/alsa-lib )
+ fftw? ( >=sci-libs/fftw-3.3:= )
+ openal? ( media-libs/openal )
+ portaudio? ( =media-libs/portaudio-19* )
+ pulseaudio? ( media-sound/pulseaudio )
+ spell? ( app-text/hunspell )
+ uchardet? ( dev-libs/uchardet )
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig
+ oss? ( virtual/os-headers )
+ test? (
+ ~dev-cpp/gtest-1.7.0
+ dev-lua/busted
+ dev-lua/luarocks
+ )
+"
+
+REQUIRED_USE="|| ( alsa openal oss portaudio pulseaudio )"
+
+PATCHES=(
+ "${FILESDIR}/${PV}/${P}-fix-system-luajit-build.patch"
+ "${FILESDIR}/${PV}/${P}-respect-compiler-flags.patch"
+ "${FILESDIR}/${PV}/${P}-support-system-gtest.patch"
+)
+
+aegisub_check_compiler() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
+ die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3."
+ fi
+}
+
+pkg_pretend() {
+ aegisub_check_compiler
+}
+
+pkg_setup() {
+ aegisub_check_compiler
+}
+
+src_prepare() {
+ default_src_prepare
+
+ # Remove tests that require unavailable uuid Lua module.
+ rm automation/tests/modules/lfs.moon || die
+
+ remove_locale() {
+ rm "po/${1}.po" || die
+ }
+
+ l10n_find_plocales_changes 'po' '' '.po'
+ l10n_for_each_disabled_locale_do remove_locale
+
+ # See http://devel.aegisub.org/ticket/1914
+ config_rpath_update "${S}"/config.rpath
+
+ eautoreconf
+
+ cat <<- EOF > build/git_version.h || die
+ #define BUILD_GIT_VERSION_NUMBER 8897
+ #define BUILD_GIT_VERSION_STRING "${PV}"
+ #define TAGGED_RELEASE 0
+ EOF
+}
+
+src_configure() {
+ # Prevent access violations from OpenAL detection. See Gentoo bug 508184.
+ use openal && export agi_cv_with_openal="yes"
+
+ setup-wxwidgets
+ local myeconfargs=(
+ --disable-update-checker
+ --with-ffms2
+ --with-system-luajit
+ $(use_enable debug)
+ $(use_with alsa)
+ $(use_with fftw fftw3)
+ $(use_with openal)
+ $(use_with oss)
+ $(use_with portaudio)
+ $(use_with pulseaudio libpulse)
+ $(use_with spell hunspell)
+ $(use_with uchardet)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake WITH_SYSTEM_GTEST=$(usex test)
+}
+
+src_test() {
+ emake test-automation
+ emake test-libaegisub
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
next reply other threads:[~2017-01-04 10:15 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 10:15 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-07 2:30 [gentoo-commits] repo/gentoo:master commit in: media-video/aegisub/ Sam James
2025-05-20 14:30 Arthur Zamarin
2025-05-18 12:28 Arthur Zamarin
2025-05-17 8:06 David Seifert
2025-05-17 8:06 David Seifert
2025-02-13 10:31 Nick Sarnie
2024-12-17 18:37 Arthur Zamarin
2024-12-16 21:12 Sam James
2024-07-05 17:49 Pacho Ramos
2024-04-17 22:01 Sam James
2024-04-12 5:46 Arthur Zamarin
2023-06-11 18:22 Andreas Sturmlechner
2023-03-02 23:22 Nick Sarnie
2023-01-23 4:11 Nick Sarnie
2023-01-22 17:52 Arthur Zamarin
2023-01-14 15:50 Sam James
2022-08-29 8:25 Joonas Niilola
2022-08-29 8:21 Joonas Niilola
2022-07-29 7:59 Agostino Sarubbo
2022-07-28 18:58 Nick Sarnie
2021-07-04 14:03 Ulrich Müller
2021-06-18 19:18 David Seifert
2021-01-27 18:53 Conrad Kostecki
2021-01-11 0:24 Nick Sarnie
2020-08-05 16:10 Nick Sarnie
2019-08-18 12:37 David Seifert
2019-08-12 8:02 Agostino Sarubbo
2019-08-11 23:03 Thomas Deutschmann
2019-04-05 2:02 Nick Sarnie
2018-04-22 19:26 Nick Sarnie
2018-04-10 9:22 Andreas Sturmlechner
2017-12-24 17:08 Patrice Clement
2017-07-30 9:44 Michał Górny
2017-07-23 4:15 Michael Palimaka
2017-07-23 4:15 Michael Palimaka
2017-01-15 17:36 David Seifert
2017-01-10 15:22 Agostino Sarubbo
2017-01-10 14:56 Agostino Sarubbo
2017-01-06 8:01 David Seifert
2017-01-04 10:15 David Seifert
2016-10-20 22:17 Patrice Clement
2016-10-20 22:17 Patrice Clement
2016-07-11 19:37 Patrice Clement
2016-06-28 18:06 Patrice Clement
2016-06-27 0:25 Göktürk Yüksek
2016-05-26 8:58 Michał Górny
2016-03-10 13:55 Ian Delaney
2016-03-10 13:55 Ian Delaney
2016-03-10 13:55 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-08 2:16 Ian Delaney
2016-03-05 11:39 Patrice Clement
2016-03-05 11:39 Patrice Clement
2016-02-10 22:04 Patrice Clement
2016-02-02 11:07 Patrice Clement
2016-01-12 14:24 Ian Delaney
2016-01-12 14:24 Ian Delaney
2016-01-10 1:59 Ian Delaney
2016-01-10 1:59 Ian Delaney
2015-12-28 9:53 Patrice Clement
2015-12-25 16:20 Agostino Sarubbo
2015-12-25 15:13 Agostino Sarubbo
2015-12-22 15:47 Ian Delaney
2015-11-26 10:07 Patrice Clement
2015-11-03 11:16 Ian Delaney
2015-11-03 11:16 Ian Delaney
2015-11-03 9:42 Ian Delaney
2015-11-02 11:20 Ian Delaney
2015-10-26 7:19 Ian Delaney
2015-08-16 23:18 Mikle Kolyada
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=1483524859.5d91a8ec6e301561d4ac84de993bf4fa12cc4d0d.soap@gentoo \
--to=soap@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