diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-03 01:57:59 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-03 01:57:59 +0800 |
commit | d75cdef681050028c71b91400b5df700c8e273ec (patch) | |
tree | 0308e1d0f71a40edec372c8fc6ec85429195b9a0 /audio/yamt | |
parent | c091a01dcb0e6b8a74a6b0d4f2384035e7265327 (diff) | |
download | marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar.gz marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar.bz2 marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar.lz marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar.xz marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.tar.zst marcuscom-ports-d75cdef681050028c71b91400b5df700c8e273ec.zip |
share/gnome -> share (audio is done!)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8766 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio/yamt')
-rw-r--r-- | audio/yamt/Makefile | 32 | ||||
-rw-r--r-- | audio/yamt/distinfo | 3 | ||||
-rw-r--r-- | audio/yamt/files/patch-aa | 11 | ||||
-rw-r--r-- | audio/yamt/files/patch-ab | 11 | ||||
-rw-r--r-- | audio/yamt/files/patch-po-ja.po | 13 | ||||
-rw-r--r-- | audio/yamt/files/patch-yamt-directory-traversal | 123 | ||||
-rw-r--r-- | audio/yamt/pkg-descr | 16 | ||||
-rw-r--r-- | audio/yamt/pkg-plist | 30 |
8 files changed, 239 insertions, 0 deletions
diff --git a/audio/yamt/Makefile b/audio/yamt/Makefile new file mode 100644 index 000000000..c643fdc10 --- /dev/null +++ b/audio/yamt/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: yamt +# Date created: 9 January 2000 +# Whom: Dmitry Sivachenko <dima@Chg.RU> +# +# $FreeBSD$ +# + +PORTNAME= yamt +PORTVERSION= 0.5 +PORTREVISION= 4 +CATEGORIES= audio gnome +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + ftp://ftp.gpad.ac.ru/pub/FreeBSD/distfiles/ +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= demon@FreeBSD.org +COMMENT= Yet Another Mp3 Tool which helps you to organize your mp3s + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= gnomelibs gnomehack gnomeprefix +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g ; \ + s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \ + s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/audio/yamt/distinfo b/audio/yamt/distinfo new file mode 100644 index 000000000..063b524c4 --- /dev/null +++ b/audio/yamt/distinfo @@ -0,0 +1,3 @@ +MD5 (yamt-0.5.tar.gz) = 22beb30f6762ede1641e89c978636dcd +SHA256 (yamt-0.5.tar.gz) = df4616e287aa9b2feb946bf54467dabbdc3f5c2065982e903e80406d8a5dd54d +SIZE (yamt-0.5.tar.gz) = 261074 diff --git a/audio/yamt/files/patch-aa b/audio/yamt/files/patch-aa new file mode 100644 index 000000000..702068db7 --- /dev/null +++ b/audio/yamt/files/patch-aa @@ -0,0 +1,11 @@ +--- configure.orig Sat Jun 3 20:35:31 2000 ++++ configure Sat Jun 3 20:36:07 2000 +@@ -4366,7 +4366,7 @@ + + fi + +-PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}" ++PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps" + + + diff --git a/audio/yamt/files/patch-ab b/audio/yamt/files/patch-ab new file mode 100644 index 000000000..b1fba12ec --- /dev/null +++ b/audio/yamt/files/patch-ab @@ -0,0 +1,11 @@ +--- pixmaps/Makefile.in.orig Sat Jun 3 20:47:40 2000 ++++ pixmaps/Makefile.in Sat Jun 3 20:47:54 2000 +@@ -113,7 +113,7 @@ + EXTRA_DIST = yamt-logo.png yamt-icon.png + + +-pixmapdir = $(datadir)/pixmaps/yamt ++pixmapdir = $(datadir)/pixmaps + + pixmap_DATA = $(EXTRA_DIST) + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/audio/yamt/files/patch-po-ja.po b/audio/yamt/files/patch-po-ja.po new file mode 100644 index 000000000..887905613 --- /dev/null +++ b/audio/yamt/files/patch-po-ja.po @@ -0,0 +1,13 @@ +--- po/ja.po.orig Sun Sep 8 23:20:05 2002 ++++ po/ja.po Sun Sep 8 23:20:10 2002 +@@ -827,8 +827,8 @@ + #~ "Then it deletes all directories." + #~ msgstr "" + #~ "¤³¤Îµ¡Ç½¤ÏʬÎൡǽ¤ÎÃúÅÙÈ¿ÂФò¹Ô¤¦:\n" +-#~ "¸µ¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¼(³î¤Ä»Ò¥Ç¥£¥ì¥¯¥È¥ê¡¼)Æâ¤ÎÁ´¥Õ¥¡¥¤¥ë¤Ï°¸Àè¥Ç¥£¥ì¥¯¥È¥ê¡¼¤Ë°" +-#~ "ܤµ¤ì¤ë.\n" ++#~ "¸µ¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¼(³î¤Ä»Ò¥Ç¥£¥ì¥¯¥È¥ê¡¼)Æâ¤ÎÁ´¥Õ¥¡¥¤¥ë¤Ï°¸Àè¥Ç¥£¥ì¥¯¥È¥ê¡¼¤Ë" ++#~ "ܤµ¤ì¤.\n" + #~ "¤½¤ì¤«¤éÁ´¥Ç¥£¥ì¥¯¥È¥ê¡¼¤òºï½ü¤¹¤ë." + + #~ msgid "Find" diff --git a/audio/yamt/files/patch-yamt-directory-traversal b/audio/yamt/files/patch-yamt-directory-traversal new file mode 100644 index 000000000..99ec83166 --- /dev/null +++ b/audio/yamt/files/patch-yamt-directory-traversal @@ -0,0 +1,123 @@ +--- src/id3tag.c ++++ src/id3tag.c +@@ -389,12 +389,20 @@ + return(1); + } + ++static void id3tag_sanitize (char *string) ++{ ++ while ((string = strchr (string, '/'))) ++ { ++ *string = '_'; ++ } ++} ++ + /* This function renames a file based on its tag in the given format */ + int id3tag_rename( char *filename, char *format ) + { + struct id3tag tag; + struct stat stbuf; +- char target_filename[80]=""; ++ char target_filename[PATH_MAX]=""; + char buffer[10]=""; + char *tmp; + int i; +@@ -425,36 +433,42 @@ + { + case 't': + strcat( target_filename, tag.title); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(tag.title); + i++; + break; + + case 'a': + strcat( target_filename, tag.artist); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(tag.artist); + i++; + break; + + case 'b': + strcat( target_filename, tag.album); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(tag.album); + i++; + break; + + case 'c': + strcat( target_filename, tag.comment); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(tag.comment); + i++; + break; + + case 'y': + strcat( target_filename, tag.year); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(tag.year); + i++; + break; + + case 'g': + strcat( target_filename, id3tag_get_genre(tag.genre)); ++ id3tag_sanitize (target_filename+i2); + i2=i2+strlen(id3tag_get_genre(tag.genre)); + i++; + break; +@@ -521,9 +535,9 @@ + int id3tag_sort( char *filename, char *rootdir, char *format_level1, char *format_level2 ) + { + struct id3tag tag; +- char *dir_level1=NULL; +- char *dir_level2=NULL; +- char target_filename[80]; ++ char *dir_level1=NULL, *dir_level1_sanitized; ++ char *dir_level2=NULL, *dir_level2_sanitized; ++ char source_filename[PATH_MAX], target_filename[PATH_MAX]; + char dir_cur[80]; + + +@@ -554,8 +568,10 @@ + chdir(rootdir); + if( dir_level1[0] == '\0' ) + dir_level1 = "Unknown"; +- yamtlog("%s %s", "New directory: ", dir_level1); +- mkdir( dir_level1, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH ); ++ dir_level1_sanitized = strdup (dir_level1); ++ id3tag_sanitize (dir_level1_sanitized); ++ yamtlog("%s %s", "New directory: ", dir_level1_sanitized); ++ mkdir( dir_level1_sanitized, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH ); + + /* Level 2 */ + if( strcmp( format_level2, "Album") == 0 ) +@@ -573,18 +589,24 @@ + + if( dir_level2[0] == '\0' ) + dir_level2 = "Unknown"; +- yamtlog("%s %s", "New directory: ", dir_level2); ++ dir_level2_sanitized = strdup (dir_level2); ++ id3tag_sanitize (dir_level2_sanitized); ++ yamtlog("%s %s", "New directory: ", dir_level2_sanitized); + + /* Go into the previously created directory */ +- chdir( dir_level1 ); +- mkdir( dir_level2, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH ); ++ chdir( dir_level1_sanitized ); ++ mkdir( dir_level2_sanitized, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH ); + /* Move the file into the new (?) directory */ + +- sprintf( target_filename, "mv \"%s/%s\" \"%s%s/%s/%s\"", dir_cur, filename, rootdir, dir_level1, dir_level2, filename ); ++ snprintf( source_filename, PATH_MAX, "%s/%s", dir_cur, filename ); ++ snprintf( target_filename, PATH_MAX, "%s%s/%s/%s", rootdir, dir_level1_sanitized, dir_level2_sanitized, filename ); ++ ++ free (dir_level1_sanitized); ++ free (dir_level2_sanitized); + + yamtlog("%s %s", "Sorted ", filename ); + +- system( target_filename ); ++ rename( source_filename, target_filename ); + + /* if( (rename( filename, target_filename )) ) */ + /* { */ diff --git a/audio/yamt/pkg-descr b/audio/yamt/pkg-descr new file mode 100644 index 000000000..3c459427f --- /dev/null +++ b/audio/yamt/pkg-descr @@ -0,0 +1,16 @@ +YAMT is Yet Another Mp3 Tool which helps you to organize your mp3s. + +FEATURES: + +Currently YAMT supports the following: + - Editing of single ID3 TAGs + - Rename files based on their ID3 TAGs (optional recursive) + - Mass tagging with variables %dir and %file + for the current directory and file (optional recursive) + - Sorting into subdirectories + - Find files with a special TAG (optional recursive) + +WWW: http://yamt.sourceforge.net/ + +Dmitry Sivachenko, +dima@Chg.RU diff --git a/audio/yamt/pkg-plist b/audio/yamt/pkg-plist new file mode 100644 index 000000000..65e9eb0b5 --- /dev/null +++ b/audio/yamt/pkg-plist @@ -0,0 +1,30 @@ +bin/yamt +share/gnome/apps/Applications/yamt.desktop +share/pixmaps/yamt-logo.png +share/pixmaps/yamt-icon.png +share/locale/de/LC_MESSAGES/yamt.mo +share/locale/fr/LC_MESSAGES/yamt.mo +share/locale/hu/LC_MESSAGES/yamt.mo +share/locale/ja/LC_MESSAGES/yamt.mo +share/gnome/help/yamt/C/topic.dat +share/gnome/help/yamt/C/index.html +share/gnome/help/yamt/C/about.html +share/gnome/help/yamt/C/advanced.html +share/gnome/help/yamt/C/auto.html +share/gnome/help/yamt/C/contacts.html +share/gnome/help/yamt/C/docbook.css +share/gnome/help/yamt/C/edit.html +share/gnome/help/yamt/C/exchange.html +share/gnome/help/yamt/C/explore.html +share/gnome/help/yamt/C/features.html +share/gnome/help/yamt/C/introduction.html +share/gnome/help/yamt/C/ln15.html +share/gnome/help/yamt/C/mass.html +share/gnome/help/yamt/C/misc.html +share/gnome/help/yamt/C/playlists.html +share/gnome/help/yamt/C/properties-0.html +share/gnome/help/yamt/C/properties.html +share/gnome/help/yamt/C/rename.html +share/gnome/help/yamt/C/sortandunsort.html +@dirrm share/gnome/help/yamt/C +@dirrm share/gnome/help/yamt |