Merge pull request #7414 from newbluemoon/subtitleeditor

New package: subtitleeditor-0.54.0
This commit is contained in:
Enno Boland 2017-08-17 12:33:28 +02:00 committed by GitHub
commit 9c98c5b275
5 changed files with 100 additions and 0 deletions

View file

@ -2823,6 +2823,7 @@ libbrotlidec.so.0.6.0 brotli-0.6.0_1
libbrotlienc.so.0.6.0 brotli-0.6.0_1
libfilteraudio.so filter_audio-0.0.1_1
libarmadillo.so.7 armadillo-7.800.2_1
libgstreamermm-1.0.so.1 gstreamermm-1.8.0_1
libduktape.so.201 duktape-2.1.1_1
libccgnu2-1.8.so.0 commoncpp2-1.8.1_1
libccext2-1.8.so.0 commoncpp2-1.8.1_1

1
srcpkgs/gstreamermm-devel Symbolic link
View file

@ -0,0 +1 @@
gstreamermm

View file

@ -0,0 +1,45 @@
Author: Marcin Kolny <marcin.kolny@gmail.com>
Description: Gst::AudioClock: auto generate some audioclock methods
Origin: https://bugzilla.gnome.org/show_bug.cgi?id=783628
Last-update: 2017-07-01
--- gstreamer/gstreamermm/audioclock.cc
+++ gstreamer/gstreamermm/audioclock.cc
@@ -2,6 +2,7 @@
#include <glibmm.h>
+#include <gst/gstversion.h>
#include <gstreamermm/audioclock.h>
#include <gstreamermm/private/audioclock_p.h>
@@ -76,17 +77,29 @@ AudioClock::AudioClock(const Glib::ustri
Gst::ClockTime AudioClock::adjust(Gst::ClockTime time)
{
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
+ return ((Gst::ClockTime)(gst_audio_clock_adjust(gobj(), ((GstClockTime)(time)))));
+#else
return static_cast<Gst::ClockTime>(gst_audio_clock_adjust(GST_CLOCK_CAST(gobj()), static_cast<GstClockTime>(time)));
+#endif
}
Gst::ClockTime AudioClock::get_time() const
{
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
+ return ((Gst::ClockTime)(gst_audio_clock_get_time(const_cast<GstAudioClock*>(gobj()))));
+#else
return static_cast<Gst::ClockTime>(gst_audio_clock_get_time(GST_CLOCK_CAST(gobj())));
+#endif
}
void AudioClock::invalidate()
{
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
+ gst_audio_clock_invalidate(gobj());
+#else
gst_audio_clock_invalidate(GST_CLOCK_CAST(gobj()));
+#endif
}
} //namespace Gst

View file

@ -0,0 +1,33 @@
# Template file for 'gstreamermm'
pkgname=gstreamermm
version=1.8.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config perl"
makedepends="gst-plugins-base1-devel pangomm-devel"
configure_args="--disable-plugins-bad"
short_desc="GStreamer API C++ bindings"
maintainer="newbluemoon <blaumolch@mailbox.org>"
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
license="GPL-2, GPL-2.1"
distfiles="${GNOME_SITE}/${pkgname}/1.8/${pkgname}-${version}.tar.xz"
checksum=3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44
post_install() {
vlicense COPYING
vlicense COPYING.examples
vlicense COPYING.tools
}
gstreamermm-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/gstreamermm-1.0
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share
}
}

View file

@ -0,0 +1,20 @@
# Template file for 'subtitleeditor'
pkgname=subtitleeditor
version=0.54.0
revision=1
build_style=gnu-configure
hostmakedepends="autogen automake intltool libtool pkg-config gettext-devel"
makedepends="gtk+3-devel gtkmm-devel enchant-devel libxml++-devel
gst-plugins-base1-devel gst-plugins-good1 gstreamermm-devel iso-codes"
depends="iso-codes"
short_desc="Subtitle Editor is a GTK+3 tool to edit subtitles"
maintainer="newbluemoon <blaumolch@mailbox.org>"
homepage="https://kitone.github.io/subtitleeditor/"
license="GPL-3"
distfiles="https://github.com/kitone/${pkgname}/archive/${version}.tar.gz"
checksum=47713c6268b32ed3fe43073e07e14e3075acab7ed305d21d95b224b51ebcba14
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}