ports/135345: New port: audio/taglib-extras

Matt Tosto datahead4 at gmail.com
Mon Jun 8 02:50:01 UTC 2009


>Number:         135345
>Category:       ports
>Synopsis:       New port: audio/taglib-extras
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 08 02:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Matt Tosto
>Release:        
>Organization:
>Environment:
>Description:
The recently released Amarok v2.1 has moved to an external taglibs-extra library as described on the Amarok mailing lists here:

http://mail.kde.org/pipermail/amarok/2009-March/007918.html

The attached shell archive is a port for the most recent version of taglib-extras (0.1.3).  It has been build and run tested on an i386 7-STABLE system and appears to work as expected.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.3).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh05635
# Made on 2009-06-07 21:42 CDT by <matt at office-desktop>.
# Source directory was `/home/matt/tmp/amarok2'.
#
# Existing files will *not* be overwritten, unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    232 -rw-r--r-- taglib-extras/pkg-descr
#    213 -rw-r--r-- taglib-extras/distinfo
#   1039 -rw-r--r-- taglib-extras/Makefile
#   1084 -rw-r--r-- taglib-extras/pkg-plist
#    232 -rw-r--r-- taglib-extras/pkg-descr
#    213 -rw-r--r-- taglib-extras/distinfo
#   1039 -rw-r--r-- taglib-extras/Makefile
#   1084 -rw-r--r-- taglib-extras/pkg-plist
#
MD5SUM=${MD5SUM-md5sum}
f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
test -n "${f}" && md5check=true || md5check=false
${md5check} || \
  echo 'Note: not verifying md5sums.  Consider installing GNU coreutils.'
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    case `$dir/gettext --version 2>&1 | sed 1q` in
      *GNU*) gettext_dir=$dir ;;
    esac
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
then if (echo -n test; echo 1,2,3) | grep n >/dev/null
     then shar_n= shar_c='
'
     else shar_n=-n shar_c= ; fi
else shar_n= shar_c='\c' ; fi
f=shar-touch.$$
st1=200112312359.59
st2=123123592001.59
st2tr=123123592001.5 # old SysV 14-char limit
st3=1231235901

if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
   test ! -f ${st1} && test -f ${f}; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'

elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
   test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'

elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
   test ! -f ${st3} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'

else
  shar_touch=:
  echo
  ${echo} 'WARNING: not restoring timestamps.  Consider getting and'
  ${echo} 'installing GNU `touch'\'', distributed in GNU coreutils...'
  echo
fi
rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
#
if test ! -d ${lock_dir}
then : ; else ${echo} 'lock directory '${lock_dir}' exists'
  exit 1
fi
if mkdir ${lock_dir}
then ${echo} 'x - created lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
  exit 1
fi
# ============= taglib-extras/pkg-descr ==============
if test ! -d 'taglib-extras'; then
  mkdir 'taglib-extras'
if test $? -eq 0
then ${echo} 'x - created directory `taglib-extras'\''.'
else ${echo} 'x - failed to create directory `taglib-extras'\''.'
  exit 1
fi
fi
if test -f 'taglib-extras/pkg-descr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/pkg-descr (file already exists)'
else
${echo} 'x - extracting taglib-extras/pkg-descr (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/pkg-descr' &&
This splits the taglib plugins that used to be in Amarok into a separate
package, for use by amarok-utils as well as Amarok itself (plus anyone
else that wants to use it).
X
WWW: http://websvn.kde.org/trunk/kdesupport/taglib-extras/
SHAR_EOF
  (set 20 09 06 07 21 40 31 'taglib-extras/pkg-descr'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/pkg-descr'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/pkg-descr failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/pkg-descr: MD5 check failed'
       ) << SHAR_EOF
0707e911ece64c22dd75def21649cb3f  taglib-extras/pkg-descr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/pkg-descr'` -ne 232 && \
  ${echo} 'restoration warning:  size of taglib-extras/pkg-descr is not 232'
  fi
fi
# ============= taglib-extras/distinfo ==============
if test ! -d 'taglib-extras'; then
  mkdir 'taglib-extras'
if test $? -eq 0
then ${echo} 'x - created directory `taglib-extras'\''.'
else ${echo} 'x - failed to create directory `taglib-extras'\''.'
  exit 1
fi
fi
if test -f 'taglib-extras/distinfo' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/distinfo (file already exists)'
else
${echo} 'x - extracting taglib-extras/distinfo (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/distinfo' &&
MD5 (taglib-extras-0.1.3.tar.gz) = 44c15bc5c1b183117909163f9dbc159f
SHA256 (taglib-extras-0.1.3.tar.gz) = 5d43dcff17f5ecb7ae241378ec1c1d1ea0e1aa62086c290f881aaaff610bf287
SIZE (taglib-extras-0.1.3.tar.gz) = 48904
SHAR_EOF
  (set 20 09 06 07 21 40 30 'taglib-extras/distinfo'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/distinfo'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/distinfo failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/distinfo: MD5 check failed'
       ) << SHAR_EOF
457ceaf6d5732a6e5608bd55f739b918  taglib-extras/distinfo
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/distinfo'` -ne 213 && \
  ${echo} 'restoration warning:  size of taglib-extras/distinfo is not 213'
  fi
fi
# ============= taglib-extras/Makefile ==============
if test -f 'taglib-extras/Makefile' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/Makefile (file already exists)'
else
${echo} 'x - extracting taglib-extras/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/Makefile' &&
# New ports collection makefile for:	taglib-extras
# Date created:			Thu Aug 14 12:50:02 EDT 2008
# Whom:				Matt Tosto <datahead4 at gmail.com>
#
# $FreeBSD: ports/audio/taglib-extras/Makefile,v 1.00 2008/09/30 12:16:23 mtosto Exp $
X
PORTNAME=	taglib-extras
PORTVERSION=	0.1.3
CATEGORIES=	audio
MASTER_SITES=	http://www.kollide.net/~jefferai/
X
MAINTAINER=	datahead4 at gmail.com
COMMENT=	Extra taglib features for Amarok 2.1
X
LIB_DEPENDS=	tag.6:${PORTSDIR}/audio/taglib \
X		phonon.4:${PORTSDIR}/multimedia/phonon
X
USE_KDE4=	automoc4 kdehier
USE_QT_VER=	4
QT_COMPONENTS=	corelib qmake_build moc_build rcc_build uic_build
USE_CMAKE=	yes
X
WRKSRC=		${WRKDIR}/${PORTNAME}
X
OPTIONS=	KDE4_MIME "Resolve file types with KMimeTypeResolve" ON
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITHOUT_KDE4_MIME)
CMAKE_ARGS+=    -DWITH_KDE:BOOL=Off
X.else
USE_KDE4+=		kdelibs
CMAKE_ARGS+=    -DWITH_KDE:BOOL=On
X.endif
X
post-extract:
X	${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|' \
X		${WRKSRC}/CMakeLists.txt
X
X.include <bsd.port.post.mk>
SHAR_EOF
  (set 20 09 06 07 21 40 30 'taglib-extras/Makefile'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/Makefile'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/Makefile failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/Makefile: MD5 check failed'
       ) << SHAR_EOF
3c3021d3f17414dcf5dafa20c4bcb863  taglib-extras/Makefile
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/Makefile'` -ne 1039 && \
  ${echo} 'restoration warning:  size of taglib-extras/Makefile is not 1039'
  fi
fi
# ============= taglib-extras/pkg-plist ==============
if test -f 'taglib-extras/pkg-plist' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/pkg-plist (file already exists)'
else
${echo} 'x - extracting taglib-extras/pkg-plist (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/pkg-plist' &&
bin/taglib-extras-config
include/taglib-extras/taglib-extras_export.h
include/taglib-extras/tdebug.h
include/taglib-extras/tfile_helper.h
include/taglib-extras/tplugins.h
include/taglib-extras/wavfiletyperesolver.h
include/taglib-extras/wavproperties.h
include/taglib-extras/wavfile.h
include/taglib-extras/mp4filetyperesolver.h
include/taglib-extras/mp4atom.h
include/taglib-extras/mp4file.h
include/taglib-extras/mp4item.h
include/taglib-extras/mp4properties.h
include/taglib-extras/mp4tag.h
include/taglib-extras/asffiletyperesolver.h
include/taglib-extras/asfattribute.h
include/taglib-extras/asffile.h
include/taglib-extras/asfproperties.h
include/taglib-extras/asftag.h
include/taglib-extras/audiblefiletyperesolver.h
include/taglib-extras/audiblefile.h
include/taglib-extras/audibleproperties.h
include/taglib-extras/audibletag.h
include/taglib-extras/realmediafiletyperesolver.h
include/taglib-extras/realmediafile.h
lib/libtag-extras.so
lib/libtag-extras.so.0
lib/libtag-extras.so.0.1.0
libdata/pkgconfig/taglib-extras.pc
@dirrm include/taglib-extras
@dirrmtry lib/pkgconfig
SHAR_EOF
  (set 20 09 06 07 21 40 31 'taglib-extras/pkg-plist'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/pkg-plist'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/pkg-plist failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/pkg-plist: MD5 check failed'
       ) << SHAR_EOF
2a7c769e7d5f86deef3c162027f3b223  taglib-extras/pkg-plist
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/pkg-plist'` -ne 1084 && \
  ${echo} 'restoration warning:  size of taglib-extras/pkg-plist is not 1084'
  fi
fi
# ============= taglib-extras/pkg-descr ==============
if test -f 'taglib-extras/pkg-descr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/pkg-descr (file already exists)'
else
${echo} 'x - extracting taglib-extras/pkg-descr (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/pkg-descr' &&
This splits the taglib plugins that used to be in Amarok into a separate
package, for use by amarok-utils as well as Amarok itself (plus anyone
else that wants to use it).
X
WWW: http://websvn.kde.org/trunk/kdesupport/taglib-extras/
SHAR_EOF
  (set 20 09 06 07 21 40 31 'taglib-extras/pkg-descr'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/pkg-descr'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/pkg-descr failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/pkg-descr: MD5 check failed'
       ) << SHAR_EOF
0707e911ece64c22dd75def21649cb3f  taglib-extras/pkg-descr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/pkg-descr'` -ne 232 && \
  ${echo} 'restoration warning:  size of taglib-extras/pkg-descr is not 232'
  fi
fi
# ============= taglib-extras/distinfo ==============
if test -f 'taglib-extras/distinfo' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/distinfo (file already exists)'
else
${echo} 'x - extracting taglib-extras/distinfo (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/distinfo' &&
MD5 (taglib-extras-0.1.3.tar.gz) = 44c15bc5c1b183117909163f9dbc159f
SHA256 (taglib-extras-0.1.3.tar.gz) = 5d43dcff17f5ecb7ae241378ec1c1d1ea0e1aa62086c290f881aaaff610bf287
SIZE (taglib-extras-0.1.3.tar.gz) = 48904
SHAR_EOF
  (set 20 09 06 07 21 40 30 'taglib-extras/distinfo'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/distinfo'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/distinfo failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/distinfo: MD5 check failed'
       ) << SHAR_EOF
457ceaf6d5732a6e5608bd55f739b918  taglib-extras/distinfo
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/distinfo'` -ne 213 && \
  ${echo} 'restoration warning:  size of taglib-extras/distinfo is not 213'
  fi
fi
# ============= taglib-extras/Makefile ==============
if test -f 'taglib-extras/Makefile' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/Makefile (file already exists)'
else
${echo} 'x - extracting taglib-extras/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/Makefile' &&
# New ports collection makefile for:	taglib-extras
# Date created:			Thu Aug 14 12:50:02 EDT 2008
# Whom:				Matt Tosto <datahead4 at gmail.com>
#
# $FreeBSD: ports/audio/taglib-extras/Makefile,v 1.00 2008/09/30 12:16:23 mtosto Exp $
X
PORTNAME=	taglib-extras
PORTVERSION=	0.1.3
CATEGORIES=	audio
MASTER_SITES=	http://www.kollide.net/~jefferai/
X
MAINTAINER=	datahead4 at gmail.com
COMMENT=	Extra taglib features for Amarok 2.1
X
LIB_DEPENDS=	tag.6:${PORTSDIR}/audio/taglib \
X		phonon.4:${PORTSDIR}/multimedia/phonon
X
USE_KDE4=	automoc4 kdehier
USE_QT_VER=	4
QT_COMPONENTS=	corelib qmake_build moc_build rcc_build uic_build
USE_CMAKE=	yes
X
WRKSRC=		${WRKDIR}/${PORTNAME}
X
OPTIONS=	KDE4_MIME "Resolve file types with KMimeTypeResolve" ON
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITHOUT_KDE4_MIME)
CMAKE_ARGS+=    -DWITH_KDE:BOOL=Off
X.else
USE_KDE4+=		kdelibs
CMAKE_ARGS+=    -DWITH_KDE:BOOL=On
X.endif
X
post-extract:
X	${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|' \
X		${WRKSRC}/CMakeLists.txt
X
X.include <bsd.port.post.mk>
SHAR_EOF
  (set 20 09 06 07 21 40 30 'taglib-extras/Makefile'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/Makefile'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/Makefile failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/Makefile: MD5 check failed'
       ) << SHAR_EOF
3c3021d3f17414dcf5dafa20c4bcb863  taglib-extras/Makefile
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/Makefile'` -ne 1039 && \
  ${echo} 'restoration warning:  size of taglib-extras/Makefile is not 1039'
  fi
fi
# ============= taglib-extras/pkg-plist ==============
if test -f 'taglib-extras/pkg-plist' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING taglib-extras/pkg-plist (file already exists)'
else
${echo} 'x - extracting taglib-extras/pkg-plist (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'taglib-extras/pkg-plist' &&
bin/taglib-extras-config
include/taglib-extras/taglib-extras_export.h
include/taglib-extras/tdebug.h
include/taglib-extras/tfile_helper.h
include/taglib-extras/tplugins.h
include/taglib-extras/wavfiletyperesolver.h
include/taglib-extras/wavproperties.h
include/taglib-extras/wavfile.h
include/taglib-extras/mp4filetyperesolver.h
include/taglib-extras/mp4atom.h
include/taglib-extras/mp4file.h
include/taglib-extras/mp4item.h
include/taglib-extras/mp4properties.h
include/taglib-extras/mp4tag.h
include/taglib-extras/asffiletyperesolver.h
include/taglib-extras/asfattribute.h
include/taglib-extras/asffile.h
include/taglib-extras/asfproperties.h
include/taglib-extras/asftag.h
include/taglib-extras/audiblefiletyperesolver.h
include/taglib-extras/audiblefile.h
include/taglib-extras/audibleproperties.h
include/taglib-extras/audibletag.h
include/taglib-extras/realmediafiletyperesolver.h
include/taglib-extras/realmediafile.h
lib/libtag-extras.so
lib/libtag-extras.so.0
lib/libtag-extras.so.0.1.0
libdata/pkgconfig/taglib-extras.pc
@dirrm include/taglib-extras
@dirrmtry lib/pkgconfig
SHAR_EOF
  (set 20 09 06 07 21 40 31 'taglib-extras/pkg-plist'; eval "$shar_touch") &&
  chmod 0644 'taglib-extras/pkg-plist'
if test $? -ne 0
then ${echo} 'restore of taglib-extras/pkg-plist failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'taglib-extras/pkg-plist: MD5 check failed'
       ) << SHAR_EOF
2a7c769e7d5f86deef3c162027f3b223  taglib-extras/pkg-plist
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'taglib-extras/pkg-plist'` -ne 1084 && \
  ${echo} 'restoration warning:  size of taglib-extras/pkg-plist is not 1084'
  fi
fi
if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
  exit 1
fi
exit 0


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list