1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix plist after PORTNAME is changed

PR:		ports/115274
Submitted by:	Thomas Hurst <tom at hur.st>
Approved by:	Daniel <daniel at netwalk.org> (maintainer)
This commit is contained in:
Rong-En Fan 2007-08-17 17:34:55 +00:00
parent c77cb6ec93
commit e8b6752a29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197846
6 changed files with 22 additions and 12 deletions

View File

@ -24,8 +24,10 @@ RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \
USE_PYTHON= 2.4+
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= SABnzbd
PLIST_SUB= PORTNAME=${PORTNAME}
SUB_LIST+= PORTNAME=${PORTNAME}
SUB_FILES= pkg-message
OPTIONS= PAR2CMDLINE "Required for postprocessing of par files." on \
@ -46,6 +48,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedpar
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|' ${WRKSRC}/setup.py
post-install:
${CHMOD} -R go+r ${PREFIX}/share/${PORTNAME}/
${CHMOD} -R go+r ${PREFIX}/share/doc/${PORTNAME}/

View File

@ -8,11 +8,11 @@
- ['SABnzbd.ini.sample', 'README.txt', 'LICENSE.txt',
- 'TODO.txt', 'CHANGELOG.txt', 'UPGRADE.txt']),
- ('share/SABnzbd-' + sabnzbd.__version__ + '/templates',
+ data_files = [('share/doc/SABnzbd',
+ data_files = [('share/doc/%%PORTNAME%%',
+ ['README.txt', 'LICENSE.txt',
+ 'TODO.txt', 'CHANGELOG.txt', 'UPGRADE.txt']),
+ ('share/SABnzbd',['SABnzbd.ini.sample']),
+ ('share/SABnzbd' + '/templates',
+ ('share/%%PORTNAME%%',['SABnzbd.ini.sample']),
+ ('share/%%PORTNAME%%' + '/templates',
['templates/default.css', 'templates/history.tmpl',
'templates/main.tmpl',
'templates/connection_info.tmpl',
@ -21,5 +21,5 @@
'templates/config_rss.tmpl',
'templates/static/placeholder.txt']),
- ('share/SABnzbd-' + sabnzbd.__version__ + '/templates/static',
+ ('share/SABnzbd/templates/static',
+ ('share/%%PORTNAME%%/templates/static',
['templates/static/placeholder.txt'])])

View File

@ -1,6 +1,6 @@
****************************************************************************
Check %%PREFIX%%/share/SABnzbd for SABnzbd.ini.sample and templates
See %%PREFIX%%/share/doc/SABnzbd for README.txt etc
Check %%PREFIX%%/share/%%PORTNAME%% for SABnzbd.ini.sample and templates
See %%PREFIX%%/share/doc/%%PORTNAME%% for README.txt etc
****************************************************************************

View File

@ -24,8 +24,10 @@ RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \
USE_PYTHON= 2.4+
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= SABnzbd
PLIST_SUB= PORTNAME=${PORTNAME}
SUB_LIST+= PORTNAME=${PORTNAME}
SUB_FILES= pkg-message
OPTIONS= PAR2CMDLINE "Required for postprocessing of par files." on \
@ -46,6 +48,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedpar
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|' ${WRKSRC}/setup.py
post-install:
${CHMOD} -R go+r ${PREFIX}/share/${PORTNAME}/
${CHMOD} -R go+r ${PREFIX}/share/doc/${PORTNAME}/

View File

@ -8,11 +8,11 @@
- ['SABnzbd.ini.sample', 'README.txt', 'LICENSE.txt',
- 'TODO.txt', 'CHANGELOG.txt', 'UPGRADE.txt']),
- ('share/SABnzbd-' + sabnzbd.__version__ + '/templates',
+ data_files = [('share/doc/SABnzbd',
+ data_files = [('share/doc/%%PORTNAME%%',
+ ['README.txt', 'LICENSE.txt',
+ 'TODO.txt', 'CHANGELOG.txt', 'UPGRADE.txt']),
+ ('share/SABnzbd',['SABnzbd.ini.sample']),
+ ('share/SABnzbd' + '/templates',
+ ('share/%%PORTNAME%%',['SABnzbd.ini.sample']),
+ ('share/%%PORTNAME%%' + '/templates',
['templates/default.css', 'templates/history.tmpl',
'templates/main.tmpl',
'templates/connection_info.tmpl',
@ -21,5 +21,5 @@
'templates/config_rss.tmpl',
'templates/static/placeholder.txt']),
- ('share/SABnzbd-' + sabnzbd.__version__ + '/templates/static',
+ ('share/SABnzbd/templates/static',
+ ('share/%%PORTNAME%%/templates/static',
['templates/static/placeholder.txt'])])

View File

@ -1,6 +1,6 @@
****************************************************************************
Check %%PREFIX%%/share/SABnzbd for SABnzbd.ini.sample and templates
See %%PREFIX%%/share/doc/SABnzbd for README.txt etc
Check %%PREFIX%%/share/%%PORTNAME%% for SABnzbd.ini.sample and templates
See %%PREFIX%%/share/doc/%%PORTNAME%% for README.txt etc
****************************************************************************