Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/aegisub/
Date: Wed, 04 Jan 2017 10:15:33
Message-Id: 1483524863.0b7fb2b3350f726fa63877421b6d1280db8603ee.soap@gentoo
1 commit: 0b7fb2b3350f726fa63877421b6d1280db8603ee
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 30 14:08:59 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 10:14:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b7fb2b3
7
8 media-video/aegisub: remove old
9
10 Closes: https://github.com/gentoo/gentoo/pull/3285
11 Package-Manager: Portage-2.3.3, Repoman-2.3.1
12
13 media-video/aegisub/aegisub-3.2.2_p20160518.ebuild | 147 ---------------------
14 1 file changed, 147 deletions(-)
15
16 diff --git a/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild b/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild
17 deleted file mode 100644
18 index b901ac1..00000000
19 --- a/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild
20 +++ /dev/null
21 @@ -1,147 +0,0 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=6
27 -
28 -WX_GTK_VER=3.0
29 -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"
30 -COMMIT_ID="b118fe7e7a5c37540e2f0aa75af105e272bad234"
31 -
32 -inherit autotools fdo-mime flag-o-matic gnome2-utils l10n wxwidgets vcs-snapshot
33 -
34 -DESCRIPTION="Advanced subtitle editor"
35 -HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub"
36 -SRC_URI="https://github.com/Aegisub/Aegisub/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
37 -
38 -LICENSE="BSD MIT"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~x86"
41 -IUSE="alsa debug +fftw openal oss portaudio pulseaudio spell test +uchardet"
42 -
43 -# aegisub bundles luabins (https://github.com/agladysh/luabins).
44 -# Unfortunately, luabins upstream is practically dead since 2010.
45 -# Thus unbundling luabins isn't worth the effort.
46 -RDEPEND="
47 - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,debug?]
48 - dev-lang/luajit:2[lua52compat]
49 - dev-libs/boost:=[icu,nls,threads]
50 - dev-libs/icu:=
51 - media-libs/ffmpegsource:=
52 - media-libs/fontconfig
53 - media-libs/freetype
54 - media-libs/libass:=[fontconfig]
55 - sys-libs/zlib
56 - virtual/libiconv
57 - virtual/opengl
58 - alsa? ( media-libs/alsa-lib )
59 - fftw? ( >=sci-libs/fftw-3.3:= )
60 - openal? ( media-libs/openal )
61 - portaudio? ( =media-libs/portaudio-19* )
62 - pulseaudio? ( media-sound/pulseaudio )
63 - spell? ( app-text/hunspell )
64 - uchardet? ( dev-libs/uchardet )
65 -"
66 -DEPEND="${RDEPEND}
67 - dev-util/intltool
68 - sys-devel/gettext
69 - virtual/pkgconfig
70 - oss? ( virtual/os-headers )
71 - test? (
72 - ~dev-cpp/gtest-1.7.0
73 - dev-lua/busted
74 - dev-lua/luarocks
75 - )
76 -"
77 -
78 -REQUIRED_USE="|| ( alsa openal oss portaudio pulseaudio )"
79 -
80 -PATCHES=(
81 - "${FILESDIR}/${PV}/${P}-fix-system-luajit-build.patch"
82 - "${FILESDIR}/${PV}/${P}-respect-compiler-flags.patch"
83 - "${FILESDIR}/${PV}/${P}-support-system-gtest.patch"
84 -)
85 -
86 -aegisub_check_compiler() {
87 - if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
88 - die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3."
89 - fi
90 -}
91 -
92 -pkg_pretend() {
93 - aegisub_check_compiler
94 -}
95 -
96 -pkg_setup() {
97 - aegisub_check_compiler
98 -}
99 -
100 -src_prepare() {
101 - default_src_prepare
102 -
103 - # Remove tests that require unavailable uuid Lua module.
104 - rm automation/tests/modules/lfs.moon || die
105 -
106 - remove_locale() {
107 - rm "po/${1}.po" || die
108 - }
109 -
110 - l10n_find_plocales_changes 'po' '' '.po'
111 - l10n_for_each_disabled_locale_do remove_locale
112 -
113 - # See http://devel.aegisub.org/ticket/1914
114 - config_rpath_update "${S}"/config.rpath
115 -
116 - eautoreconf
117 -
118 - cat <<- EOF > build/git_version.h || die
119 - #define BUILD_GIT_VERSION_NUMBER 8897
120 - #define BUILD_GIT_VERSION_STRING "${PV}"
121 - #define TAGGED_RELEASE 0
122 - EOF
123 -}
124 -
125 -src_configure() {
126 - # Prevent access violations from OpenAL detection. See Gentoo bug 508184.
127 - use openal && export agi_cv_with_openal="yes"
128 -
129 - setup-wxwidgets
130 - local myeconfargs=(
131 - --disable-update-checker
132 - --with-ffms2
133 - --with-system-luajit
134 - $(use_enable debug)
135 - $(use_with alsa)
136 - $(use_with fftw fftw3)
137 - $(use_with openal)
138 - $(use_with oss)
139 - $(use_with portaudio)
140 - $(use_with pulseaudio libpulse)
141 - $(use_with spell hunspell)
142 - $(use_with uchardet)
143 - )
144 - econf "${myeconfargs[@]}"
145 -}
146 -
147 -src_compile() {
148 - emake WITH_SYSTEM_GTEST=$(usex test)
149 -}
150 -
151 -src_test() {
152 - emake test-automation
153 - emake test-libaegisub
154 -}
155 -
156 -pkg_preinst() {
157 - gnome2_icon_savelist
158 -}
159 -
160 -pkg_postinst() {
161 - fdo-mime_desktop_database_update
162 - gnome2_icon_cache_update
163 -}
164 -
165 -pkg_postrm() {
166 - fdo-mime_desktop_database_update
167 - gnome2_icon_cache_update
168 -}