1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/osc/Makefile
Dmitry Marakasov 837a83397d osc is a command-line client fot openSUSE build service. It is
written in Python, and in addition to the commandline interface it
also provides a Python module, for use by other Python programs.

osc is a subversion-like client. It serves as client for the source
code repository component of the build service, and it is used to
edit metadata or query about build results.

WWW: http://en.opensuse.org/openSUSE:OSC
2013-02-06 00:30:44 +00:00

57 lines
1.3 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= osc
PORTVERSION= 0.138.0
CATEGORIES= devel
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Command Line Interface to work with an openSUSE Build Service
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= openSUSE
GH_COMMIT= bc7a48c
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}m2crypto>0:${PORTSDIR}/security/py-m2crypto
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGVERSION=${PORTVERSION:C/^([0-9]+\.[0-9]+)\.[0-9]+/\1/}
MAN1= osc.1
MANCOMPRESSED= yes
PORTDOCS= README NEWS TODO
OPTIONS_DEFINE= CA_BUNDLE DOCS
OPTIONS_DEFAULT=CA_BUNDLE
CA_BUNDLE_DESC= Install CA Certificates
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCA_BUNDLE}
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
CA_PATH= ${LOCALBASE}/share/certs/ca-root-nss.crt
.else
CA_PATH= /etc/ssl
.endif
post-patch:
@${REINPLACE_CMD} -e "s|'share', 'man'|'man'|" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "/cert.pem/ s|\[.*\]|['${CA_PATH}']|" \
${WRKSRC}/osc/conf.py
post-install:
${LN} -s osc-wrapper.py ${PREFIX}/bin/osc
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>