1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Use shebangfix

This commit is contained in:
Baptiste Daroussin 2013-05-07 06:45:39 +00:00
parent 560c00adfb
commit 890f04c002
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317576
5 changed files with 15 additions and 25 deletions

View File

@ -30,6 +30,9 @@ EJECT_DESC?= Enable auto-eject support
NORMALIZE_DESC?= Enable normalize support
REPLAYGAIN_DESC?= Enable (vorbis|mp3)gain support
USES= shebangfix
SHEBANG_FILES= ${PORTNAME} cddb-tool
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCDDA2WAV}
@ -73,10 +76,7 @@ post-patch:
${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
${WRKSRC}/abcde.1
${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
-e 's#/bin/bash#${LOCALBASE}/bin/bash#g' \
${WRKSRC}/abcde
${REINPLACE_CMD} -e 's#/bin/bash#${LOCALBASE}/bin/bash#g' \
${WRKSRC}/cddb-tool
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin

View File

@ -18,7 +18,7 @@ LIB_DEPENDS= samplerate:${PORTSDIR}/audio/libsamplerate \
execinfo:${PORTSDIR}/devel/libexecinfo
GNU_CONFIGURE= yes
USES= pkgconfig gettext iconv
USES= pkgconfig gettext iconv shebangfix
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_BZIP2= yes
@ -29,6 +29,7 @@ WANT_GNOME= yes
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV+= CONFIG_SHELL="${LOCALBASE}/bin/bash"
SHEBANG_FILES= yasmwrapper.sh
OPTIONS_DEFINE= PULSEAUDIO GUI VFS LASTFM ART EQ SID FFAP VTX HOTKEYS VORBIS FFMPEG \
FLAC SNDFILE WAV CDDA GME DUMB NOTIFY MUSEPACK WILD TTA DCA AAC \
@ -357,8 +358,6 @@ post-patch:
${WRKSRC}/plugins/gme/Makefile.in \
${WRKSRC}/plugins/sid/Makefile.in \
${WRKSRC}/plugins/supereq/Makefile.in
@${REINPLACE_CMD} -e 's,/bin/bash,${LOCALBASE}/bin/bash,' \
${WRKSRC}/yasmwrapper.sh
@${REINPLACE_CMD} -e 's,/etc/timidity++/timidity-freepats.cfg:/etc/timidity/freepats.cfg:/etc/timidity/,${LOCALBASE}/share/,' \
${WRKSRC}/plugins/wildmidi/wildmidiplug.c

View File

@ -17,16 +17,16 @@ RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
USE_BZIP2= yes
USE_GNOME= libgnomeui libxml2
USES= gettext
USES= gettext shebangfix
USE_PYTHON= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-ladcca --disable-lash --disable-aseq
SHEBANG_FILES= ecarack
post-patch:
@${REINPLACE_CMD} -e '/^jr_desktop_install/ s|/usr/share|${PREFIX}/share|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/ecarack
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: last.fm
# Date created: February 5th, 2007
# Whom: Michael Nottebrock <lofi@freebsd.org>
#
# Created by: Michael Nottebrock <lofi@freebsd.org>
# $FreeBSD$
#
PORTNAME= last.fm
PORTVERSION= 1.5.4.26862
@ -27,12 +23,14 @@ LICENSE_FILE= ${WRKSRC}/COPYING
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-install pkg-deinstall
USES= shebangfix
USE_BZIP2= yes
USE_QT4= gui imageformats_run moc_build network qmake_build rcc_build \
sql uic_build xml
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
USE_DOS2UNIX= *.h
SHEBANG_FILES= dist/tarball_files/configure
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
@ -44,8 +42,7 @@ USE_GCC=4.2+
post-patch:
${CP} ${WRKSRC}/dist/tarball_files/configure ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|/bin/bash|/${LOCALBASE}/bin/bash|g' \
-E -e 's|(.*"CONFIG-=debug")|\1 ${QMAKEFLAGS}|g' \
${REINPLACE_CMD} -E -e 's|(.*"CONFIG-=debug")|\1 ${QMAKEFLAGS}|g' \
-e 's|function header|header()|g' \
-e 's|function middle|middle()|g' \
-e 's|-pthread|-pthread -R/usr/local/share/last.fm|g' \

View File

@ -1,10 +1,6 @@
# New ports collection makefile for: muine
# Date created: 20040615
# Whom: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
#
# Created by: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
# $FreeBSD$
# $Id: Makefile,v 1.54 2007/01/26 03:17:25 tmclau02 Exp $
#
PORTNAME= muine
PORTVERSION= 0.8.11
@ -24,20 +20,18 @@ BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/ndesk-dbus-glib-1.0.pc:${PORTSDIR}
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_GMAKE= yes
USES= gettext
USES= gettext shebangfix
USE_GNOME= gnomeprefix gnomehack intltool libgnomeui gnomesharp20
USE_GSTREAMER= gconf
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
SHEBANG_FILES= src/muine.in
bash_CMD= ${SETENV} bash
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GCONF_SCHEMAS= muine.schemas
post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|g' \
${WRKSRC}/src/muine.in
.include <bsd.port.mk>