From 87544b4ef3d9f54136adfcf44468183936d987db Mon Sep 17 00:00:00 2001 From: dsomero Date: Thu, 6 Sep 2012 15:14:45 -0400 Subject: multimedia/subtitleeditor: Updated for version 0.40.0. Signed-off-by: dsomero --- multimedia/subtitleeditor/glib-single-include.patch | 13 +++++++++++++ multimedia/subtitleeditor/subtitleeditor.SlackBuild | 12 ++++++++---- multimedia/subtitleeditor/subtitleeditor.info | 6 +++--- 3 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 multimedia/subtitleeditor/glib-single-include.patch diff --git a/multimedia/subtitleeditor/glib-single-include.patch b/multimedia/subtitleeditor/glib-single-include.patch new file mode 100644 index 0000000000..35f8bd49cc --- /dev/null +++ b/multimedia/subtitleeditor/glib-single-include.patch @@ -0,0 +1,13 @@ +Index: subtitleeditor-0.40.0/plugins/actions/findandreplace/findandreplace.cc +=================================================================== +--- subtitleeditor-0.40.0.orig/plugins/actions/findandreplace/findandreplace.cc ++++ subtitleeditor-0.40.0/plugins/actions/findandreplace/findandreplace.cc +@@ -26,7 +26,7 @@ + #include + #include + #include +-#include ++#include + + /* + * FIXME: diff --git a/multimedia/subtitleeditor/subtitleeditor.SlackBuild b/multimedia/subtitleeditor/subtitleeditor.SlackBuild index 17c014bc97..6332f99143 100644 --- a/multimedia/subtitleeditor/subtitleeditor.SlackBuild +++ b/multimedia/subtitleeditor/subtitleeditor.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=subtitleeditor -VERSION=${VERSION:-0.38.0} +VERSION=${VERSION:-0.40.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -65,6 +65,10 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +# Starting with glib 2.32 it is now mandatory to +# include glib.h instead of individual headers. +patch -p1 -i $CWD/glib-single-include.patch + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -89,9 +93,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION for DOCFILE in ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README TODO; do - if [ -f $DOCFILE ]; then - cp -a $DOCFILE $PKG/usr/doc/$PRGNAM-$VERSION - fi + if [ -f $DOCFILE ]; then + cp -a $DOCFILE $PKG/usr/doc/$PRGNAM-$VERSION + fi done find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/multimedia/subtitleeditor/subtitleeditor.info b/multimedia/subtitleeditor/subtitleeditor.info index e940a4d7a5..a4d9f1bc90 100644 --- a/multimedia/subtitleeditor/subtitleeditor.info +++ b/multimedia/subtitleeditor/subtitleeditor.info @@ -1,8 +1,8 @@ PRGNAM="subtitleeditor" -VERSION="0.38.0" +VERSION="0.40.0" HOMEPAGE="http://home.gna.org/subtitleeditor/" -DOWNLOAD="http://download.gna.org/subtitleeditor/0.38/subtitleeditor-0.38.0.tar.gz" -MD5SUM="2c4d7d4bd79f45effcea279a2e06ca66" +DOWNLOAD="http://download.gna.org/subtitleeditor/0.40/subtitleeditor-0.40.0.tar.gz" +MD5SUM="cb8a5dec7eeea8357ad5a9e977e5d5bd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gstreamermm" -- cgit v1.2.3