<commit_before>COMMENT =           Python xmlrpc client library for trac instances

MODPY_EGG_VERSION = 0.0.3
REVISION =          2
DISTNAME =          offtrac-${MODPY_EGG_VERSION}
PKGNAME =           py-offtrac-${MODPY_EGG_VERSION}
CATEGORIES =        devel
HOMEPAGE =          https://fedorahosted.org/offtrac/
MAINTAINER =        <NAME> <<EMAIL>>

MODULES =           lang/python
BUILD_DEPENDS =     devel/git

CHECK_LIB_DEPENDS = Yes

PKG_ARCH =          *

# We have to clone the git repo and generate a tar.gz file from there.
NO_CHECKSUM =       Yes

# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes

pre-fetch:
	@if [ ! -f ${DISTDIR}/${DISTNAME}.tar.gz ]; then \
		tmpdir=$$(mktemp -d -p ${WRKDIR}) ; \
		cd $$tmpdir ; \
		git clone git://git.fedorahosted.org/git/offtrac ; \
		cd offtrac ; \
		git checkout -b tarball ${MODPY_EGG_VERSION} ; \
		${MODPY_BIN} setup.py sdist ; \
		${INSTALL_DATA} dist/${DISTNAME}.tar.gz ${DISTDIR}/${DISTNAME}.tar.gz ; \
	fi

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-offtrac
	for f in COPYING LICENSE README ; do \
		${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-offtrac/$$f ; \
	done

.include <bsd.port.mk><commit_msg>Reformat Makefile for devel/py-offtrac.<commit_after># $OpenBSD$

COMMENT =                Python xmlrpc client library for trac instances

MODPY_EGG_VERSION =      0.0.3
REVISION =               3
DISTNAME =               offtrac-${MODPY_EGG_VERSION}
PKGNAME =                py-offtrac-${MODPY_EGG_VERSION}
CATEGORIES =             devel
HOMEPAGE =               https://fedorahosted.org/offtrac/
MAINTAINER =             <NAME> <<EMAIL>>

# GPLv2+
PERMIT_PACKAGE_CDROM =   Yes
PERMIT_PACKAGE_FTP =     Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP =   Yes

MODULES =                lang/python

BUILD_DEPENDS =          devel/git

PKG_ARCH =               *

# We have to clone the git repo and generate a tar.gz file from there.
NO_CHECKSUM =            Yes
GIT_SRC =                ${WRKDIR}/offtrac

pre-fetch:
	git clone git://git.fedorahosted.org/git/offtrac ${GIT_SRC}
	cd ${GIT_SRC} ; git checkout -b tarball ${MODPY_EGG_VERSION}
	cd ${GIT_SRC} ; ${MODPY_BIN} setup.py sdist
	cp ${GIT_SRC}/dist/${DISTNAME}${EXTRACT_SUFX} ${DISTDIR}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-offtrac
.for d in COPYING LICENSE README
	${INSTALL_DATA} ${WRKSRC}/${d} ${PREFIX}/share/doc/py-offtrac/${d}
.endfor

.include <bsd.port.mk>
{'fraction_non_alphanumeric': 0.12425089892129444, 'fraction_numerical': 0.003995205753096284, 'mean_word_length': 2.737313432835821, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5969993', 'n_tokens_mistral': 987, 'n_tokens_neox': 942, 'n_words': 193}