1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/sysutils/createrepo/Makefile
2014-12-10 22:29:14 +00:00

40 lines
1.3 KiB
Makefile

# Created by: Anders F Bjorklund <afb@rpm5.org>
# $FreeBSD$
PORTNAME= createrepo
PORTVERSION= 0.10.3
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:${PORTSDIR}/devel/py-yum-metadata-parser \
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
${PYTHON_SITELIBDIR}/urlgrabber/__init__.py:${PORTSDIR}/www/py-urlgrabber \
${PYTHON_SITELIBDIR}/yum/__init__.py:${PORTSDIR}/sysutils/yum \
${PYTHON_SITELIBDIR}/deltarpm.py:${PORTSDIR}/sysutils/deltarpm
USES= gmake python shebangfix
SHEBANG_FILES= *.py */*.py Makefile
BUILD_DEPENDS+= ginstall:${PORTSDIR}/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>