freebsd-ports/sysutils/createrepo/Makefile
Stephen Montgomery-Smith f9d4159dc0 - New port sysutils/createrepo.
This utility will generate a common metadata repository from a directory of
rpm packages.

WWW: http://createrepo.baseurl.org/

PR:		ports/150542
Submitted by:	afb@rpm5.org
Approved by:	maho (mentor)
2011-07-19 03:45:58 +00:00

47 lines
1.4 KiB
Makefile

# New ports collection makefile for: yum
# Date created: 22 August 2010
# Whom: Anders F Bjorklund <afb@rpm5.org>
#
# $FreeBSD$
PORTNAME= createrepo
PORTVERSION= 0.9.8
CATEGORIES= sysutils
MASTER_SITES= http://createrepo.baseurl.org/download/
MAINTAINER= afb@rpm5.org
COMMENT= Creates a common metadata repository
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sqlitecachec.py:${PORTSDIR}/devel/py-yum-metadata-parser \
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
USE_PYTHON= yes
USE_GMAKE= yes
BUILD_DEPENDS+= ginstall:${PORTSDIR}/sysutils/coreutils
GINSTALL= ginstall
MAKE_ARGS= MAKE=${GMAKE} INSTALL="${GINSTALL} -p -v" PYTHON=${PYTHON_CMD} \
prefix=${PREFIX} mandir=${MANPREFIX}/man sysconfdir=${PREFIX}/etc
MAN1= mergerepo.1 modifyrepo.1
MAN8= createrepo.8
post-patch:
${REINPLACE_CMD} -e 's|/usr/share/createrepo|${DATADIR}|g' \
${WRKSRC}/bin/mergerepo \
${WRKSRC}/bin/modifyrepo \
${WRKSRC}/bin/createrepo
${REINPLACE_CMD} -e 's|#!/usr/bin/|#!${PYTHON_CMD}|' \
${WRKSRC}/genpkgmetadata.py \
${WRKSRC}/dmd.py \
${WRKSRC}/mergerepo.py \
${WRKSRC}/createrepo/deltarpms.py \
${WRKSRC}/createrepo/utils.py \
${WRKSRC}/createrepo/yumbased.py \
${WRKSRC}/createrepo/readMetadata.py \
${WRKSRC}/createrepo/merge.py
${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' -e 's|$$(datadir)/$$(PKGNAME)|${DATADIR}|' \
${WRKSRC}/Makefile
.include <bsd.port.mk>