Update to 2.21

Replace the do-configure routine with MODPY_ADJ_FILES.
Replace the patch with sed -i.
This commit is contained in:
bcallah 2015-07-20 16:12:58 +00:00
parent f39787bcb9
commit 7dcf921db9
3 changed files with 7 additions and 20 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.29 2015/02/16 22:57:13 naddy Exp $
# $OpenBSD: Makefile,v 1.30 2015/07/20 16:12:58 bcallah Exp $
COMMENT= RSS Aggregator Without Delusions Of Grandeur
MODPY_EGG_VERSION= 2.20
MODPY_EGG_VERSION= 2.21
DISTNAME= rawdog-${MODPY_EGG_VERSION}
CATEGORIES= www news
@ -16,6 +16,7 @@ PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://offog.org/files/
MODULES= lang/python
MODPY_ADJ_FILES=rawdog
RUN_DEPENDS= textproc/py-feedparser
@ -24,10 +25,8 @@ NO_TEST= Yes
DOCDIR= ${PREFIX}/share/doc/rawdog
EXAMPLESDIR= ${PREFIX}/share/examples/rawdog
do-configure:
@perl -pi -e \
's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
${WRKSRC}/rawdog
post-patch:
sed -i 's,share/man,man,g' ${WRKSRC}/setup.py
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}

View File

@ -1,2 +1,2 @@
SHA256 (rawdog-2.20.tar.gz) = CmOybMERsN7KRB9JgXe0m+AzB2DFwOJFhM25uh5/1aY=
SIZE (rawdog-2.20.tar.gz) = 66933
SHA256 (rawdog-2.21.tar.gz) = YADBQoXku2W2BqUxX2Qj2qCsbbT9QSS0oRL6C846vzg=
SIZE (rawdog-2.21.tar.gz) = 67812

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-setup_py,v 1.4 2013/10/04 23:26:51 bcallah Exp $
--- setup.py.orig Tue Sep 10 06:06:35 2013
+++ setup.py Fri Oct 4 19:18:28 2013
@@ -14,7 +14,7 @@ setup(name = "rawdog",
author_email = "ats@offog.org",
url = "http://offog.org/code/rawdog/",
scripts = ['rawdog'],
- data_files = [('share/man/man1', ['rawdog.1'])],
+ data_files = [('man/man1', ['rawdog.1'])],
packages = ['rawdoglib'],
classifiers = [
"Development Status :: 5 - Production/Stable",