aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjhale <jhale@FreeBSD.org>2014-10-05 08:09:49 +0800
committerjhale <jhale@FreeBSD.org>2014-10-05 08:09:49 +0800
commit303ca2e05f6f841719b5ef871214842e53deab99 (patch)
tree11e72cf6e335a82a69eb0ac9501a8704c0c8d369 /audio
parentc2b77d593bb9dbc8bac9c72d5ed1c51259b932f6 (diff)
downloadfreebsd-ports-gnome-303ca2e05f6f841719b5ef871214842e53deab99.tar.gz
freebsd-ports-gnome-303ca2e05f6f841719b5ef871214842e53deab99.tar.zst
freebsd-ports-gnome-303ca2e05f6f841719b5ef871214842e53deab99.zip
- Convert to USES=python, limit to 2.x
- Drop leading "The" from COMMENT - Use shebangfix instead of multiple patching - Trim plist
Diffstat (limited to 'audio')
-rw-r--r--audio/soundconverter/Makefile14
-rw-r--r--audio/soundconverter/files/patch-src_soundconverter.py8
-rw-r--r--audio/soundconverter/pkg-plist1
3 files changed, 8 insertions, 15 deletions
diff --git a/audio/soundconverter/Makefile b/audio/soundconverter/Makefile
index 213331033f82..0d73f00565f9 100644
--- a/audio/soundconverter/Makefile
+++ b/audio/soundconverter/Makefile
@@ -8,23 +8,25 @@ CATEGORIES= audio python
MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
-COMMENT= The sound conversion application for the GNOME environment
+COMMENT= Sound conversion application for the GNOME environment
LICENSE= GPLv3
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gst-0.10/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gstreamer>=0.10:${PORTSDIR}/multimedia/py-gstreamer
+
+USES= gettext gmake desktop-file-utils python:2 shebangfix
+
+SHEBANG_FILES= src/soundconverter.py
+python_OLD_CMD= /usr/bin/python -tt
-USES= gettext gmake desktop-file-utils
GNU_CONFIGURE= yes
-USE_PYTHON= yes
USE_GNOME= pygtk2 pygnome2
-MAKE_ENV= MAKE=${LOCALBASE}/bin/gmake
+MAKE_ENV= MAKE=${MAKE_CMD}
INSTALLS_ICONS= yes
post-patch:
@${REINPLACE_CMD} -e 's|@GMSGFMT@|${LOCALBASE}/bin/msgfmt|; \
s|itlocaledir = .*|itlocaledir = ${LOCALBASE}/share/locale|g' \
${WRKSRC}/po/Makefile.in.in
- @${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|' ${WRKSRC}/src/soundconverter.py
.include <bsd.port.mk>
diff --git a/audio/soundconverter/files/patch-src_soundconverter.py b/audio/soundconverter/files/patch-src_soundconverter.py
deleted file mode 100644
index f46597bfbd30..000000000000
--- a/audio/soundconverter/files/patch-src_soundconverter.py
+++ /dev/null
@@ -1,8 +0,0 @@
---- src/soundconverter.py.orig 2009-02-25 16:08:50.000000000 +0800
-+++ src/soundconverter.py 2009-02-25 16:10:30.000000000 +0800
-@@ -1,4 +1,4 @@
--#!/usr/bin/python -tt
-+#!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # SoundConverter - GNOME application for converting between audio formats.
diff --git a/audio/soundconverter/pkg-plist b/audio/soundconverter/pkg-plist
index 3f66640b8e77..bb341b4df5fe 100644
--- a/audio/soundconverter/pkg-plist
+++ b/audio/soundconverter/pkg-plist
@@ -46,4 +46,3 @@ share/locale/zh_CN/LC_MESSAGES/soundconverter.mo
share/applications/soundconverter.desktop
share/icons/hicolor/48x48/apps/soundconverter.png
share/icons/hicolor/scalable/apps/soundconverter.svg
-@dirrm %%DATADIR%%