head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.06.02.59;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.07.17.05.49.47;	author nivit;	state Exp;
branches;
next	1.2;

1.2
date	2012.07.07.13.22.31;	author nivit;	state Exp;
branches;
next	1.1;

1.1
date	2012.05.03.08.47.22;	author nivit;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switch exporter over
@
text
@# New ports collection makefile for:	cssselect
# Date created:		2012-05-02
# Whom:			Nicola Vitale <nivit@@FreeBSD.org>
#
# $FreeBSD: head/www/py-cssselect/Makefile 300991 2012-07-17 05:49:47Z nivit $
#

PORTNAME=	cssselect
PORTVERSION=	0.7.1
#PORTREVISION=	0
CATEGORIES=	www
MASTER_SITES=	CHEESESHOP http://docs.python.org/:sphinx
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}.tar.gz

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	Cssselect parses CSS3 Selectors and translates them to XPath 1.0

LICENSE=	BSD

OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

# Python3 ready
USE_PYTHON=	-2.7
USE_PYDISTUTILS=	easy_install

DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
SPHINX_BUILD=	sphinx-build

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDOCS}
DISTFILES+=	 objects.inv:sphinx
BUILD_DEPENDS+=	sphinx-build:${PORTSDIR}/textproc/py-sphinx

REINPLACE_ARGS=	-i.bak -e 's,%%DISTDIR%%,${DISTDIR},g' \
		-e 's,%%PORTNAME%%,${PORTNAME},g'

post-patch:
	${REINPLACE_CMD} ${WRKSRC}/docs/conf.py

post-install:
	${SETENV} PYTHONPATH="${PYTHONPREFIX_SITELIBDIR}" \
	${SPHINX_BUILD} -N -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \
	cd ${WRKSRC}/docs.html && ${MKDIR} ${DOCSDIR} && \
	${COPYTREE_SHARE} . ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
@


1.3
log
@SVN rev 300991 on 2012-07-17 05:49:47Z by nivit

- Add code and patch files/patch-docs__conf.py to avoid
  download of intersphinx inventory during the install
  stage (on pointyhat)
- Remove OPTIONS_DEFAULT=DOCS
- Add switch -N to the sphinx-build command (don't do
  colored output)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2
log
@- Update to 0.7.1
- Add LICENSE (BSD)
- Build and install documentation if DOCS option
  is enabled
@
text
@d12 1
a12 1
MASTER_SITES=	CHEESESHOP
d14 3
a24 1
OPTIONS_DEFAULT=	DOCS
d38 8
a45 1
BUILD_DEPENDS=	sphinx-build:${PORTSDIR}/textproc/py-sphinx
d49 1
a49 1
	${SPHINX_BUILD} -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \
@


1.1
log
@*cssselect* parses `CSS3 Selectors`_ and translate them to `XPath 1.0`_
expressions. Such expressions can be used in lxml_ or another XPath engine
to find the matching elements in an XML or HTML document.

This module used to live inside of lxml as ``lxml.cssselect`` before it was
extracted as a stand-alone project.

WWW:	http://packages.python.org/cssselect/
@
text
@d9 1
a9 1
PORTVERSION=	0.6.1
d18 8
d30 16
a45 1
.include <bsd.port.mk>
@

