blob: 335ea0a092b941c1f353c9d3d19ea9c0d9d8d2a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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@${FLAVOR} \
${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2@${FLAVOR} \
${PYTHON_SITELIBDIR}/urlgrabber/__init__.py:www/py-urlgrabber@${FLAVOR} \
${PYTHON_SITELIBDIR}/yum/__init__.py:sysutils/yum@${FLAVOR} \
${PYTHON_SITELIBDIR}/deltarpm.py:sysutils/deltarpm@${FLAVOR}
USES= gmake python:2.7 shebangfix
USE_PYTHON= flavors
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>
|