blob: 15e9bb9dcd2b80dcbbbce2e3e842399879ad3bf8 (
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
41
42
43
44
|
# ex:ts=8
# Ports collection makefile for: py-basemap-data
# Date created: April 21, 2006
# Whom: mainland@apeiron.net
#
# $FreeBSD$
#
PORTNAME= basemap-data
PORTVERSION= 0.9
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= matplotlib
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mainland@apeiron.net
COMMENT= Map data for py-basemap
USE_PYTHON= 2.2+
USE_PYDISTUTILS= yes
DATADIR= ${PREFIX}/share/py-${PORTNAME}
MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR}
PLISTDIR= ${DATADIR}/*_[hi].txt
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 250
PLISTDIR+= ${PYTHON_SITELIBDIR}/basemap_data-0.9-py2.5.egg-info
.endif
post-install:
.for dir in ${PLISTDIR}
@${FIND} ${dir} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${dir} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor
@${ECHO} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${TMPPLIST}
.include <bsd.port.post.mk>
|