diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/aegisub |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/aegisub')
8 files changed, 568 insertions, 0 deletions
diff --git a/media-video/aegisub/Manifest b/media-video/aegisub/Manifest new file mode 100644 index 000000000000..16f40229c54c --- /dev/null +++ b/media-video/aegisub/Manifest @@ -0,0 +1,10 @@ +AUX 3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-icu59-build.patch 496 SHA256 109072dc4a062e854291c50e41a79c7379b114f53bcb0993619091b75df51d83 SHA512 58c8acc766751b6f9122821b5958ef3756c4802e91ed7ed8915c54eb7c8c960c46734a8d76cc200c064e0dab5a1f0008f99a5dd4a1c51ecda7983bb84ef6d645 WHIRLPOOL dabcb2577234c083a75ea9c46e45b3bcf7995a7584a83d0be95db6fe01a0d55234c1124b0523d3d9e483123a0ee1d5cb0326dba9e5e55d1bbee44fef270c39a7 +AUX 3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-system-luajit-build.patch 4029 SHA256 d6d98af919b1d4b8a4c7526e922dc6d0bf092b5cccc1b4e35f3626c3695ce123 SHA512 247dba6e593212294f3157226c03e2fb5d3a5a8eaf9a16e0a65ea1fee006b8f21fadbdd80fb0b748be3a9b043779a0da6bb6007fac07b7908fb46f27a055704e WHIRLPOOL 99fef83bcac6ce271aa7b38a7403b7e55f1f7aadb9e472f152dc003fdb5a1798c03f34fbf9fc9abef0ecaab3b43936c4ea39aee4800542bcbde393ceb230aa2a +AUX 3.2.2_p20160518/aegisub-3.2.2_p20160518-respect-compiler-flags.patch 2186 SHA256 8bf8eb0fb562fd4b7962cd5c3d249db78cc682f80eca5cc9783949065cc3c628 SHA512 8584f8b6822642f5afdbe1fb9a1e77b32fa4eefebb473d6a501147d328ca38ecb2f88f4247a7ad06a8dfe3d9cc6695f60652dbc122237a17d097bae2f29a6a7e WHIRLPOOL 0739c222d7194e08cbe246f122675636595142b3f341be2ddfbaf73bd68629d4ccf1b207d919dfb91949f0141cc3e64ec1bee8ea1898f1a0b237d16740b0bd5b +AUX 3.2.2_p20160518/aegisub-3.2.2_p20160518-support-system-gtest.patch 2483 SHA256 c82c8486b4cc2efec748d2fe689e2c0bb612a68f320a8dcf2ffed92caced888e SHA512 802ee218e2c005760a8260271791df0891ef6392bec4fbbb5936df5a84db888b0b6f36055d0760c4929cb442adcc1433a363fa93eae6c163f296166028684daf WHIRLPOOL 5f3cea07ea09b495cb2c2e4b132a6beace331acd0ae7fee2d65eb6970f1852b58080e86dd42ffa2d74c12a1af0b53f22f45594ca54349be54159b4101cc6656e +DIST aegisub-3.2.2_p20160518.tar.gz 7438734 SHA256 744318ce8be1afb21fbd6b0ce6d407a6f42c442db0df10c7cf89692a5bc8ca31 SHA512 8d8775ba0a12735a9756b9abfd65c89519dae4e21afcaedbd18985d1c1021975b1ae909b3bef1121b707c626e1711d56f1823f3b4746eab49e8386536a5e84e6 WHIRLPOOL 0d46799009c72cac1d6df89f4ffe5110d904e671175380e20605683b6a2f3ccdd46855cf98ebac8f0088c7a928b82547557afc8214b2fce85aed759aa5e9e4ab +EBUILD aegisub-3.2.2_p20160518-r2.ebuild 3477 SHA256 9564d83e4772e1e287119dd1844d39d58bdac8e467ac06ff11062cdc9e477db1 SHA512 a3ffee8d55f0f9608ce8e64eacc3560b38f0cd899f443ede1c2bf3fa39bcffdad87e15529654312e3c58ddf5074f118f4e6d15f5f925961bfd4f4d6c4fedea43 WHIRLPOOL 68594cd758ba14f5ee4f315d30ee91f9ace59dcf9692341502350f0112a515f6b7bed9f5407ab7a6bc3965f71fc8211b4226217b03f32e33aeff3155ec1bf4fa +EBUILD aegisub-9999.ebuild 3041 SHA256 7786fea6af10193239d18c0a09dd367a8b0d6c12860ef57f726841683a8b8365 SHA512 d2231b788ff67fd79db1c8a353cd87d5e9959f496b80b88cd7ec89f380756b3defe3f0c69a703828b00d63020276fbe749618a555912724c65077914bafe0a9d WHIRLPOOL a2205a67baca5a7c2fb95a7b90cb39b2777547cdefd4b6d620b8c6bb9e288e645270ef36ddfbc84744671cf3a37b785feece676b3e2c15715e032d6a9c832e5c +MISC ChangeLog 18822 SHA256 453958ec465d56ad2b4eecc613109726ce81742dd95f7cb853e742f7648c1063 SHA512 fd3dfcf15b3145cdf268116ffaae774de0c175321290d58d60013fc1c469f70427ef17fc922eac72edf86b5d528b67ee3513309513ebac798aefa93784b6e8a3 WHIRLPOOL d313a825d1d94230a30e7da2a0ebb845c935379210fedd5759cd207cbb8fafd52a7c93637446e39885fedf70356b8a3e400ca9bf6fccd6a012b6df444fdd0345 +MISC ChangeLog-2015 3581 SHA256 34687fcf4b354780e614d7cbc6b64a7891e67d6a4150f4cf1036b14ff719c5ef SHA512 f81bc2114ca51b52dfee23fac301c5b2076fd74f400917a5b19e3654da4b28e1bce879a6e535925def5cf905da4b51f1b2253399019091b084d1c1d6b0998973 WHIRLPOOL 17fd707c268a02d4ad7139588dc3b9831e9878ccd2391d085005c43cc19de0d0d4553e87632ac315a8156a17fbe95515648d1c745344c70799d59ff29e4d088f +MISC metadata.xml 611 SHA256 cc413cf5f3499adbc91263408af94d555a7816f7c6f0f0443fbff4bfe4bb8b98 SHA512 8c724c1981d7ef5ae3ffbe18f8fd23cc97a6f573ac6e63f7d31d4b5c71ea34cb6b3746ad7ad86f4ce1544e7b5b58ba3489f25c94cee1c6fb2840fad6cca99cb6 WHIRLPOOL e2e7afb3ce85182996cea1b91c7ae56780c73373c98c2cf2f0b86c57d6f50aa149c3cddd3bad86cbf63e256737d2e28ca3f00f9cba2afc2ebc9bcd66a0625f5d diff --git a/media-video/aegisub/aegisub-3.2.2_p20160518-r2.ebuild b/media-video/aegisub/aegisub-3.2.2_p20160518-r2.ebuild new file mode 100644 index 000000000000..34d509212bae --- /dev/null +++ b/media-video/aegisub/aegisub-3.2.2_p20160518-r2.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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? ( app-i18n/uchardet ) +" +DEPEND="${RDEPEND} + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig + 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" + "${FILESDIR}/${PV}/${P}-fix-icu59-build.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 +} diff --git a/media-video/aegisub/aegisub-9999.ebuild b/media-video/aegisub/aegisub-9999.ebuild new file mode 100644 index 000000000000..3d4464c989fa --- /dev/null +++ b/media-video/aegisub/aegisub-9999.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" + +inherit autotools gnome2-utils l10n wxwidgets xdg-utils git-r3 + +DESCRIPTION="Advanced subtitle editor" +HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub" +EGIT_REPO_URI="https://github.com/${PN^}/${PN^}.git" +# Submodules are used to pull bundled libraries. +EGIT_SUBMODULES=() + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="" +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? ( app-i18n/uchardet ) +" +DEPEND="${RDEPEND} + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig + test? ( + ~dev-cpp/gtest-1.7.0 + dev-lua/busted + dev-lua/luarocks + ) +" + +REQUIRED_USE="|| ( alsa openal oss portaudio pulseaudio )" + +PATCHES=( + "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-fix-system-luajit-build.patch" + "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-respect-compiler-flags.patch" + "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-support-system-gtest.patch" +) + +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 +} + +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 +} diff --git a/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-icu59-build.patch b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-icu59-build.patch new file mode 100644 index 000000000000..a6564def1b84 --- /dev/null +++ b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-icu59-build.patch @@ -0,0 +1,18 @@ +commit dd67db47cb2203e7a14058e52549721f6ff16a49 +Author: Maxime Gauduin <alucryd@archlinux.org> +Date: Tue May 9 04:01:47 2017 +0200 + +Fix compilation against icu 59.1 (#46) + +diff --git a/src/utils.cpp b/src/utils.cpp +index e1cde5e83..876c4c011 100644 +--- a/src/utils.cpp ++++ b/src/utils.cpp +@@ -44,6 +44,7 @@ + #include <boost/filesystem/path.hpp> + #include <map> + #include <unicode/locid.h> ++#include <unicode/unistr.h> + #include <wx/clipbrd.h> + #include <wx/filedlg.h> + #include <wx/stdpaths.h> diff --git a/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-system-luajit-build.patch b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-system-luajit-build.patch new file mode 100644 index 000000000000..42b57e5fcf45 --- /dev/null +++ b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-fix-system-luajit-build.patch @@ -0,0 +1,121 @@ +See http://devel.aegisub.org/ticket/1904 +and http://devel.aegisub.org/ticket/1913 +and http://devel.aegisub.org/ticket/1922 + +diff --git a/Makefile.inc.in b/Makefile.inc.in +index d8b3f4a..52e4cf6 100644 +--- a/Makefile.inc.in ++++ b/Makefile.inc.in +@@ -9,6 +9,7 @@ HAVE_OPENAL = @with_openal@ + HAVE_OSS = @with_oss@ + HAVE_PORTAUDIO = @with_portaudio@ + HAVE_UCHARDET = @with_uchardet@ ++SYSTEM_LUAJIT = @with_system_luajit@ + + ############## + # BUILD OUTPUT +diff --git a/automation/Makefile b/automation/Makefile +index 5483dbd..1231aab 100644 +--- a/automation/Makefile ++++ b/automation/Makefile +@@ -12,10 +12,16 @@ DATA_AUTOMATION_INSTALLED = $(addprefix $(DESTDIR)$(P_DATA)/automation/, $(DATA_ + $(DESTDIR)$(P_DATA)/automation/%: $(d)% + $(MKDIR_INSTALL) + +-aegisub-lua_OBJ := $(d)tests/aegisub.o $(TOP)lib/libaegisub.a $(TOP)lib/libluabins.a $(LIBS_LUA) ++aegisub-lua_OBJ := $(d)tests/aegisub.o $(TOP)lib/libaegisub.a $(TOP)lib/libluabins.a + aegisub-lua_CPPFLAGS := $(CPPFLAGS_BOOST) $(CFLAGS_LUA) -I$(TOP)libaegisub/include -I$(TOP)src $(CXXFLAGS_WX) + aegisub-lua_LIBS := $(LIBS_WX) $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD) + ++ifeq (no, $(SYSTEM_LUAJIT)) ++aegisub-lua_OBJ += $(LIBS_LUA) ++else ++aegisub-lua_LIBS += $(LIBS_LUA) ++endif ++ + PROGRAM += $(d)aegisub-lua + + test-automation: $(PROGRAM) +diff --git a/configure.ac b/configure.ac +index 1649efc..81b1413 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -429,13 +429,15 @@ AS_IF([test $with_system_luajit = no], + [AC_SUBST([LUAJIT_CFLAGS], ['-I$(TOP)vendor/luajit/include']) + AC_SUBST([LUAJIT_LIBS], ['$(TOP)vendor/luajit/src/libluajit.a'])]) + ++AC_SUBST(with_system_luajit) ++ + # We also need a Lua binary to run part of the build system + # Which version doesn't matter as the scripts are portable between them +-AC_CHECK_PROGS([LUA], [lua luajit lua5.3 lua-5.3 lua5.2 lua-5.2 lua5.1 lua-5.1]) ++AC_PATH_PROGS([LUA], [luajit lua lua5.3 lua-5.3 lua5.2 lua-5.2 lua5.1 lua-5.1]) + + # If the user doesn't have an installed copy of Lua, just use the one built + # as part of building LuaJIT +-AS_IF([test -z $LUA], [LUA="$srcdir/vendor/luajit/src/host/minilua"]) ++AS_IF([test -z $LUA], [LUA='$(TOP)vendor/luajit/src/host/minilua']) + + ###################################################### + # Debugging support +diff --git a/header.mk b/header.mk +index 613b38f..a9ce1d7 100644 +--- a/header.mk ++++ b/header.mk +@@ -13,7 +13,10 @@ subdirs := \ + tests \ + tools \ + vendor/luabins \ +- vendor/luajit ++ ++ifeq (no, $(SYSTEM_LUAJIT)) ++subdirs += vendor/luajit ++endif + + subdirs := $(addprefix $(TOP),$(addsuffix /Makefile,$(subdirs))) + +diff --git a/src/Makefile b/src/Makefile +index 0ee6c84..1a6f015 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -6,7 +6,7 @@ src_CPPFLAGS := -I$(d) -I.. -I$(d)include -I$(TOP)libaegisub/include -I$(TOP)bui + $(CFLAGS_PTHREAD) $(CFLAGS_FFTW3) $(CFLAGS_ICU) $(CPPFLAGS_BOOST) + src_CXXFLAGS := $(CXXFLAGS_WX) + src_LIBS := $(LIBS_GL) $(LIBS_PTHREAD) $(LIBS_WX) $(LIBS_FREETYPE) \ +- $(LIBS_LIBASS) $(LIBS_FONTCONFIG) $(LIBS_FFTW3) $(LIBS_BOOST) $(LIBS_ICU) ++ $(LIBS_LIBASS) $(LIBS_FONTCONFIG) $(LIBS_FFTW3) $(LIBS_BOOST) $(LIBS_ICU) + src_PCH := $(d)agi_pre.h + src_INSTALLNAME := $(AEGISUB_COMMAND) + +@@ -111,11 +111,16 @@ src_OBJ := \ + $(d)video_provider_yuv4mpeg.o \ + $(d)video_slider.o \ + $(d)visual_feature.o \ +- $(LIBS_LUA) \ + $(TOP)lib/libaegisub.a \ + $(TOP)lib/libluabins.a \ + $(TOP)lib/libresrc.a \ + ++ifeq (no, $(SYSTEM_LUAJIT)) ++src_OBJ += $(LIBS_LUA) ++else ++src_LIBS += $(LIBS_LUA) ++endif ++ + ifeq (yes, $(BUILD_DARWIN)) + src_OBJ += $(d)font_file_lister_coretext.o + src_OBJ += $(subst .mm,.o,$(wildcard $(d)osx/*.mm)) +diff --git a/tools/Makefile b/tools/Makefile +index de6166a..e3d108a 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -12,6 +12,8 @@ repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU) + + PROGRAM += $(d)repack-thes-dict + +-$(TOP)tools/respack.lua: $(shell command -v "$(BIN_LUA)") ++ifeq (no, $(SYSTEM_LUAJIT)) ++$(TOP)tools/respack.lua: $(BIN_LUA) ++endif + + include $(TOP)Makefile.target diff --git a/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-respect-compiler-flags.patch b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-respect-compiler-flags.patch new file mode 100644 index 000000000000..90e57f178dc4 --- /dev/null +++ b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-respect-compiler-flags.patch @@ -0,0 +1,53 @@ +See http://devel.aegisub.org/ticket/1899 +and http://devel.aegisub.org/ticket/1900 + +diff --git a/configure.ac b/configure.ac +index 1649efc..2f4470b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -133,20 +133,17 @@ AS_IF([test x$build_darwin != xyes], [ + AC_ARG_ENABLE(compiler-flags, AS_HELP_STRING([--disable-compiler-flags],[Disable *all* additional compiler flags. [no]])) + + AS_IF([test x$enable_compiler_flags != xno], [ +- CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -g" +- CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -pipe -g" ++ CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" ++ CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing" ++ AC_C_FLAG([-std=gnu99]) + AC_CXX_FLAG([-std=c++11]) +- AC_CXX_FLAG([-Wno-c++11-narrowing]) + AC_C_FLAG([-Wno-unused-local-typedefs]) + AC_CXX_FLAG([-Wno-unused-local-typedefs]) + + # -O* messes with debugging. + AS_IF([test x$enable_debug = xyes], [ +- CFLAGS="$CFLAGS -O0" +- CXXFLAGS="$CXXFLAGS -O0" +- ], [ +- CFLAGS="$CFLAGS -O3" +- CXXFLAGS="$CXXFLAGS -O3" ++ CFLAGS="$CFLAGS -O0 -g" ++ CXXFLAGS="$CXXFLAGS -O0 -g" + ]) + ]) + +diff --git a/src/Makefile b/src/Makefile +index 0ee6c84..cad213b 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -188,14 +188,13 @@ endif + ##################### + # SOURCE-LEVEL CFLAGS + ##################### +-$(d)MatroskaParser.o_FLAGS := -Wno-sometimes-uninitialized + $(d)audio_player.o_FLAGS := $(CFLAGS_ALSA) $(CFLAGS_PORTAUDIO) $(CFLAGS_LIBPULSE) $(CFLAGS_OPENAL) + $(d)audio_provider_factory.o_FLAGS := $(CFLAGS_FFMS2) + $(d)auto4_base.o_FLAGS := $(CFLAGS_FREETYPE) + $(d)charset_detect.o_FLAGS := -D_X86_ + $(d)font_file_lister_fontconfig.o_FLAGS := $(CFLAGS_FONTCONFIG) + $(d)subtitles_provider.o_FLAGS := $(CFLAGS_LIBASS) +-$(d)subtitles_provider_libass.o_FLAGS := $(CFLAGS_LIBASS) -Wno-c++11-narrowing ++$(d)subtitles_provider_libass.o_FLAGS := $(CFLAGS_LIBASS) + $(d)text_file_reader.o_FLAGS := -D_X86_ + $(d)video_provider_manager.o_FLAGS := $(CFLAGS_FFMS2) + $(d)auto4_lua.o_FLAGS := $(CFLAGS_LUA) diff --git a/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-support-system-gtest.patch b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-support-system-gtest.patch new file mode 100644 index 000000000000..8209ac5ec7c3 --- /dev/null +++ b/media-video/aegisub/files/3.2.2_p20160518/aegisub-3.2.2_p20160518-support-system-gtest.patch @@ -0,0 +1,75 @@ +commit 83f868ea8decbbe97891631fe142e84c883ee33d +Author: Ilya Tumaykin <itumaykin@gmail.com> +Date: Wed Jun 1 20:00:37 2016 +0300 + +Allow to build and run tests with a system copy of gtest (googletest) + +Also add LIBS_UCHARDET to the mix only when uchardet is requested. + +Closes #1923 + +Bug: http://devel.aegisub.org/ticket/1923 +--- + +diff --git a/tests/Makefile b/tests/Makefile +index 8c30c1d..c5bf049 100644 +--- a/tests/Makefile ++++ b/tests/Makefile +@@ -1,24 +1,45 @@ + include $(dir $(lastword $(MAKEFILE_LIST)))../header.mk + ++WITH_SYSTEM_GTEST ?= no ++ ++ifeq (no, $(WITH_SYSTEM_GTEST)) + GTEST_ROOT ?= $(TOP)vendor/googletest + GTEST_FILE := ${GTEST_ROOT}/src/gtest-all ++GTEST_CPPFLAGS := -I$(GTEST_ROOT) -I$(GTEST_ROOT)/include ++GTEST_CXXFLAGS := $(CFLAGS_PTHREAD) ++GTEST_LIBS := $(LIBS_PTHREAD) ++else ++GTEST_CPPFLAGS := $(shell gtest-config --cppflags) ++GTEST_CXXFLAGS := $(shell gtest-config --cxxflags) ++GTEST_LIBS := $(shell gtest-config --libs) ++endif + + run_PCH := $(d)support/tests_pre.h + run_CPPFLAGS := -I$(TOP)libaegisub/include -I$(TOP) -I$(d)support \ +- -I$(GTEST_ROOT) -I$(GTEST_ROOT)/include $(CPPFLAGS_BOOST) $(CFLAGS_LUA) +-run_CXXFLAGS := -Wno-unused-value -Wno-sign-compare +-run_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_UCHARDET) $(LIBS_PTHREAD) ++ $(CPPFLAGS_BOOST) $(CFLAGS_ICU) $(CFLAGS_LUA) $(GTEST_CPPFLAGS) ++run_CXXFLAGS := -Wno-unused-value -Wno-sign-compare $(GTEST_CXXFLAGS) ++run_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(GTEST_LIBS) + run_OBJ := \ + $(subst .cpp,.o,$(wildcard $(d)tests/*.cpp)) \ + $(d)support/main.o \ + $(d)support/util.o \ +- $(TOP)lib/libaegisub.a \ +- $(GTEST_FILE).o ++ $(TOP)lib/libaegisub.a + ++ifeq (yes, $(HAVE_UCHARDET)) ++run_LIBS += $(LIBS_UCHARDET) ++endif ++ ++ifeq (no, $(WITH_SYSTEM_GTEST)) ++run_OBJ += $(GTEST_FILE).o + # This bit of goofiness is to make it only try to build the tests if google + # test can be found and silently skip it if not, by using $(wildcard) to check + # for file existence + PROGRAM += $(subst $(GTEST_FILE).cc,$(d)run,$(wildcard $(GTEST_FILE).cc)) ++test: $(subst $(GTEST_FILE).cc,test-libaegisub,$(wildcard $(GTEST_FILE).cc)) ++else ++PROGRAM += $(d)run ++test: test-libaegisub ++endif + + ifeq (yes, $(BUILD_DARWIN)) + run_LIBS += -framework ApplicationServices -framework Foundation +@@ -31,6 +52,4 @@ gtest_filter ?= * + test-libaegisub: $(d)run $(d)data + cd $(TOP)tests; ./run --gtest_filter="$(gtest_filter)" + +-test: $(subst $(GTEST_FILE).cc,test-libaegisub,$(wildcard $(GTEST_FILE).cc)) +- + include $(TOP)Makefile.target diff --git a/media-video/aegisub/metadata.xml b/media-video/aegisub/metadata.xml new file mode 100644 index 000000000000..3ca352be29a1 --- /dev/null +++ b/media-video/aegisub/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>itumaykin+gentoo@gmail.com</email> + <name>Coacher</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="uchardet">Enable charset discovery via <pkg>app-i18n/uchardet</pkg></flag> + </use> + <upstream> + <bugs-to>http://devel.aegisub.org/wiki/NewTicket</bugs-to> + <remote-id type="github">Aegisub/Aegisub</remote-id> + </upstream> +</pkgmetadata> |