blob: a6e305248d40c4498202260cf31cc59e76f5b9cf (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: ninja-ide
# Date created: 2011-12-11
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ninja-ide
DISTVERSION= 2.0-beta2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/downloads/${PORTNAME}/${PORTNAME}/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
MAINTAINER= nivit@FreeBSD.org
COMMENT= A cross-platform integrated development environment (IDE)
LICENSE= GPLv3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-network>=4.8.5,1:${PORTSDIR}/net/py-qt4-network \
${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.8.5:${PORTSDIR}/www/py-qt4-webkit
FETCH_ARGS= -Frp
REINPLACE_ARGS= -i.bak -e 's,/usr/bin/env python,&${PYTHON_VER},' \
-e 's,%%DOCSDIR%%,${DOCSDIR},'
SUB_FILES= ${PORTNAME}
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
USE_PYTHON= 2.6-2.7
USE_ZIP= yes
post-patch:
${REINPLACE_CMD} ${WRKSRC}/${PORTNAME}.py ${WRKSRC}/ninja_ide/resources.py
${FIND} ${WRKSRC} -type f \( -name "*.bak" -or -name "*.orig" \) -delete
do-build:
${PYTHON_CMD} -m compileall ${WRKSRC}
${PYTHON_CMD} -OO -m compileall ${WRKSRC}
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
${RM} -f ${DATADIR}/README ${DATADIR}/COPYING
.if !defined(NOPORTDOCS)
${MV} ${DATADIR}/ninja_ide/doc ${DOCSDIR}
.else
${RM} -R ${DATADIR}/ninja_ide/doc
.endif
.include <bsd.port.mk>
|