1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/sysutils/createrepo/Makefile
Mathieu Arnold 597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00

40 lines
1.3 KiB
Makefile

# Created by: Anders F Bjorklund <afb@rpm5.org>
# $FreeBSD$
PORTNAME= createrepo
PORTVERSION= 0.10.4
CATEGORIES= sysutils
MASTER_SITES= http://createrepo.baseurl.org/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility to create and manage RPM metadata repositories
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sqlitecachec.py:devel/py-yum-metadata-parser \
${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2 \
${PYTHON_SITELIBDIR}/urlgrabber/__init__.py:www/py-urlgrabber \
${PYTHON_SITELIBDIR}/yum/__init__.py:sysutils/yum \
${PYTHON_SITELIBDIR}/deltarpm.py:sysutils/deltarpm
USES= gmake python shebangfix
SHEBANG_FILES= *.py */*.py Makefile
BUILD_DEPENDS+= ginstall:sysutils/coreutils
GINSTALL= ginstall
MAKE_ARGS= MAKE=${MAKE_CMD} INSTALL="${GINSTALL} -p -v" PYTHON=${PYTHON_CMD} \
prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc
post-patch:
${FIND} ${WRKSRC} -type f | ${XARGS} \
${REINPLACE_CMD} -e 's|/usr/share/createrepo|${DATADIR}|g'
${REINPLACE_CMD} \
-e 's|$$(datadir)/$$(PKGNAME)|${DATADIR}|' \
-e '/^compdir :=/s|:= .*$$|= ${PREFIX}/share/bash-completion/completions|' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e '/^PYSYSDIR/s|:= \(.*\)|= ${PREFIX}|' \
${WRKSRC}/createrepo/Makefile
.include <bsd.port.mk>