summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYalla-One <yallaone@gmail.com>2010-05-11 15:00:25 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 15:00:25 +0200
commit6a380381802c8c9bc458ce04bb5670e0775e93c4 (patch)
tree9286bb2962a283033ebabffb437d4708f1c95f63
parentf96e9cb7bb8d91dcf927e482d5caa065270ebcad (diff)
downloadslackbuilds-6a380381802c8c9bc458ce04bb5670e0775e93c4.tar.gz
multimedia/easytag: Initial import
-rw-r--r--multimedia/easytag/README4
-rw-r--r--multimedia/easytag/doinst.sh4
-rw-r--r--multimedia/easytag/easytag.SlackBuild104
-rw-r--r--multimedia/easytag/easytag.info8
-rw-r--r--multimedia/easytag/patch_20_remove_glib_warning_on_startup.diff47
-rw-r--r--multimedia/easytag/slack-desc19
6 files changed, 186 insertions, 0 deletions
diff --git a/multimedia/easytag/README b/multimedia/easytag/README
new file mode 100644
index 0000000000..491af15dfd
--- /dev/null
+++ b/multimedia/easytag/README
@@ -0,0 +1,4 @@
+EasyTAG - Tag editor for MP3, ogg vorbis and various other files.
+
+EasyTAG requires id3lib, and we also have a SlackBuild script available for it.
+
diff --git a/multimedia/easytag/doinst.sh b/multimedia/easytag/doinst.sh
new file mode 100644
index 0000000000..9ad0b734e0
--- /dev/null
+++ b/multimedia/easytag/doinst.sh
@@ -0,0 +1,4 @@
+if [ -x usr/bin/update-desktop-database ]; then
+ ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
+fi
+
diff --git a/multimedia/easytag/easytag.SlackBuild b/multimedia/easytag/easytag.SlackBuild
new file mode 100644
index 0000000000..ae3e0d5f15
--- /dev/null
+++ b/multimedia/easytag/easytag.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/sh
+
+# Slackware build script for easytag
+
+# Copyright 2006 Halim Issa <yallaone@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Modified by the SlackBuilds.org project
+
+# Modified by Alex Lysenka <me@alkos333.net>
+
+PRGNAM=easytag
+VERSION=2.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="COPYING ChangeLog* INSTALL README TODO USERS-GUIDE THANKS \
+ doc/EasyTAG_Documentation.html doc/id3 doc/vorbis"
+
+case "$ARCH" in
+ i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ ;;
+ i686) SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ ;;
+ s390) SLKCFLAGS="-O2"
+ ;;
+ powerpc) SLKCFLAGS="-O2"
+ ;;
+ x86_64) SLKCFLAGS="-O2 -fPIC"
+ SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
+ ;;
+ athlon-xp) SLKCFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
+ ;;
+esac
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+cd $PRGNAM-$VERSION || exit 1
+
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Eliminates glib errors on start-up
+patch -d $TMP/$PRGNAM-$VERSION/src < $CWD/patch_20_remove_glib_warning_on_startup.diff
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --enable-shared=yes \
+ --enable-static=no \
+ --disable-debug \
+ || exit 1
+
+make || exit 1
+make install-strip DESTDIR=$PKG || exit 1
+
+# Fix path to icon in .desktop file
+sed -i s#'Icon=EasyTAG.xpm'#'Icon=/usr/share/pixmaps/EasyTAG.xpm'# \
+ $PKG/usr/share/applications/easytag.desktop || exit 1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+# We don't need this twice
+rm $PKG/usr/share/easytag/ChangeLog
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/multimedia/easytag/easytag.info b/multimedia/easytag/easytag.info
new file mode 100644
index 0000000000..9623cec47d
--- /dev/null
+++ b/multimedia/easytag/easytag.info
@@ -0,0 +1,8 @@
+PRGNAM="easytag"
+VERSION="2.0"
+HOMEPAGE="http://easytag.sourceforge.net/"
+DOWNLOAD="http://easynews.dl.sourceforge.net/sourceforge/easytag/easytag-2.0.tar.bz2"
+MD5SUM="af37a0a34e4d0808aabb7a24cffc75ee"
+MAINTAINER="Yalla-One"
+EMAIL="yallaone@gmail.com"
+APPROVED="BP{k}"
diff --git a/multimedia/easytag/patch_20_remove_glib_warning_on_startup.diff b/multimedia/easytag/patch_20_remove_glib_warning_on_startup.diff
new file mode 100644
index 0000000000..2c58185edb
--- /dev/null
+++ b/multimedia/easytag/patch_20_remove_glib_warning_on_startup.diff
@@ -0,0 +1,47 @@
+diff -ruN easytag-2.0.orig/src/bar.c easytag-2.0/src/bar.c
+--- easytag-2.0.orig/src/bar.c 2007-02-07 23:27:58.000000000 +0100
++++ easytag-2.0/src/bar.c 2007-04-06 21:57:52.000000000 +0200
+@@ -253,13 +253,14 @@
+ { AM_CDDB_SEARCH_FILE, GTK_STOCK_CDROM, _("CDDB Search File(s)..."), NULL, _("CDDB Search File(s)..."), G_CALLBACK(Cddb_Popup_Menu_Search_Selected_File) },
+ //{ AM_ARTIST_OPEN_FILE_WITH, GTK_STOCK_OPEN, _("Open File(s) with ..."), NULL, _("Open File(s) with ..."), G_CALLBACK(Browser_Open_Run_Program_List_Window??? Browser_Open_Run_Program_Tree_Window???) },
+ //{ AM_ALBUM_OPEN_FILE_WITH, GTK_STOCK_OPEN, _("Open File(s) with ..."), NULL, _("Open File(s) with ..."), G_CALLBACK(Browser_Open_Run_Program_List_Window??? Browser_Open_Run_Program_Tree_Window???) },
++
+ };
+
+ GtkToggleActionEntry ToggleActionEntries[] =
+ {
+- { AM_BROWSE_SUBDIR, GTK_STOCK_INDEX, _("Browse _Sub-directories"), NULL, _("Browse _Sub-directories"), NULL, FALSE },
++ { AM_BROWSE_SUBDIR, NULL, _("Browse _Sub-directories"), NULL, _("Browse _Sub-directories"), NULL, BROWSE_SUBDIR },
+ #ifndef WIN32 // No sense here for Win32, "hidden" means : starts with a '.'
+- { AM_BROWSER_HIDDEN_DIR, NULL, _("Show Hidden Directories"), NULL, _("Show Hidden Directories"), G_CALLBACK(Browser_Tree_Rebuild), FALSE },
++ { AM_BROWSER_HIDDEN_DIR, NULL, _("Show Hidden Directories"), NULL, _("Show Hidden Directories"), G_CALLBACK(Browser_Tree_Rebuild), BROWSE_HIDDEN_DIR },
+ #endif
+ { AM_VIEWMODE_TOGGLE, "easytag-artist-album", _("Show tree browser / Display by Artist and Album"), NULL, _("Show tree browser / Display by Artist and Album"), G_CALLBACK(Action_Select_Browser_Style), FALSE },
+ };
+@@ -329,7 +330,7 @@
+ CheckMenuItemBrowseSubdirMainMenu = gtk_ui_manager_get_widget(UIManager, "/MenuBar/BrowserMenu/BrowseSubdir");
+ if (CheckMenuItemBrowseSubdirMainMenu)
+ {
+- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(CheckMenuItemBrowseSubdirMainMenu),BROWSE_SUBDIR);
++ // Link to update BROWSE_SUBDIR when changed
+ g_signal_connect(G_OBJECT(CheckMenuItemBrowseSubdirMainMenu),"toggled",
+ G_CALLBACK(Check_Menu_Item_Toggled_Browse_Subdir),NULL);
+ }
+@@ -337,7 +338,7 @@
+ CheckMenuItemBrowseHiddenDirMainMenu = gtk_ui_manager_get_widget(UIManager, "/MenuBar/BrowserMenu/BrowseHiddenDir");
+ if (CheckMenuItemBrowseHiddenDirMainMenu)
+ {
+- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(CheckMenuItemBrowseHiddenDirMainMenu),BROWSE_HIDDEN_DIR);
++ // Link to update BROWSE_HIDDEN_DIR when changed
+ g_signal_connect(G_OBJECT(CheckMenuItemBrowseHiddenDirMainMenu),"toggled",
+ G_CALLBACK(Check_Menu_Item_Toggled_Browse_Hidden_Dir),NULL);
+ }
+@@ -369,7 +370,7 @@
+ Check_Menu_Item_Update_Browse_Hidden_Dir();
+
+ // Reload directory, in case we have changed BROWSE_HIDDEN_DIR
+- Browser_Tree_Rebuild(NULL);
++ //Browser_Tree_Rebuild(NULL); // Commented, as already done in GtkToggleActionEntry for AM_BROWSER_HIDDEN_DIR
+ }
+ void Check_Menu_Item_Update_Browse_Hidden_Dir (void)
+ {
diff --git a/multimedia/easytag/slack-desc b/multimedia/easytag/slack-desc
new file mode 100644
index 0000000000..c2a33fff76
--- /dev/null
+++ b/multimedia/easytag/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+easytag: easytag (Tag editor for MP3 and Ogg Vorbis files)
+easytag:
+easytag: EasyTAG is a utility for viewing and editing tags for MP3, MP2, FLAC
+easytag: Ogg Vorbis, MP4/AAC, MusePack and Monkey's Audio files. Its simple
+easytag: and nice GTK2 interface makes tagging easier under GNU/Linux.
+easytag:
+easytag:
+easytag:
+easytag:
+easytag: easytag home: http://easytag.sourceforge.net
+easytag: