mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
bf406b4d24
This allows to have more complex renaming schemes. Until now, it could only add a prefix or a suffix, but this was not working at all for man pages, because it would give man/man1/pyfoo.1.gz-2.7 or man/man1/pyfoo-1-2.7.gz. With this change, a man page will be correctly renamed to man/man1/pyfoo-2.7.1.gz. Unfix ports that were already handling man pages. PR: 220214 Submitted by: Fukang Chen (previous patch) Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D13444
35 lines
746 B
Makefile
35 lines
746 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ddgr
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.1
|
|
CATEGORIES= www
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= jsmith@resonatingmedia.com
|
|
COMMENT= Command line tool for performing DuckDuckGo web searches
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py-requests@${FLAVOR}
|
|
|
|
USES= python:3.3+ shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jarun
|
|
USE_PYTHON= concurrent flavors
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
python_OLD_CMD= "/usr/bin/env python3" # see bug#223980
|
|
|
|
MAKE_ARGS= DOCDIR=${STAGEDIR}${DOCSDIR} FREEBSD_PYTHON_VER=${PYTHON_VER}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PLIST_FILES= bin/ddgr \
|
|
man/man1/ddgr.1.gz
|
|
PORTDOCS= README.md
|
|
|
|
.include <bsd.port.mk>
|