2007-02-22 20:26:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2007/02/22 19:26:39 wiz Exp $
|
2002-01-29 20:13:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= py152
|
|
|
|
PKGNAME= python15-1.5.2
|
2006-07-22 02:37:56 +02:00
|
|
|
PKGREVISION= 5
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= lang python
|
2002-01-29 20:13:22 +01:00
|
|
|
MASTER_SITES= http://www.python.org/ftp/python/src/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-01-29 20:13:22 +01:00
|
|
|
HOMEPAGE= http://www.python.org/
|
|
|
|
COMMENT= Interpreted, interactive, object-oriented programming language
|
|
|
|
|
2005-01-30 13:44:39 +01:00
|
|
|
CONFLICTS+= python-[0-9]*
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/Python-1.5.2
|
2002-01-29 20:13:22 +01:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+= --without-thread
|
|
|
|
|
|
|
|
INSTALL_TARGET= altinstall
|
|
|
|
|
2006-07-22 02:36:19 +02:00
|
|
|
REPLACE_INTERPRETER+= py15
|
|
|
|
REPLACE.py15.old= .*python[^ ]*
|
|
|
|
REPLACE.py15.new= ${PREFIX}/bin/python1.5
|
|
|
|
REPLACE_FILES.py15= Lib/cgi.py # explicitly demanded to be patched
|
|
|
|
|
2004-06-23 17:54:08 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PLIST_SRC= ${.CURDIR}/../../lang/python15/PLIST.common
|
2004-10-04 02:49:26 +02:00
|
|
|
.if exists(${.CURDIR}/../../lang/python15/PLIST.${OPSYS})
|
2007-02-22 20:26:05 +01:00
|
|
|
PLIST_SRC+= ${.CURDIR}/../../lang/python15/PLIST.${OPSYS}
|
2004-10-04 02:49:26 +02:00
|
|
|
.endif
|
2007-02-22 20:26:05 +01:00
|
|
|
PLIST_SRC+= ${.CURDIR}/../../lang/python15/PLIST.common_end
|
2004-10-04 02:49:26 +02:00
|
|
|
|
|
|
|
.if ${OPSYS} == "Darwin"
|
2004-06-23 17:54:08 +02:00
|
|
|
PY_PLATNAME= ${LOWER_OPSYS}
|
2004-10-04 02:49:26 +02:00
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
|
2004-06-23 17:54:08 +02:00
|
|
|
.else
|
|
|
|
PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
|
|
|
|
.endif
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
|
2004-06-23 17:54:08 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${RM} -f ${WRKSRC}/Lib/test/test_fcntl.py.orig
|
|
|
|
|
2002-01-29 20:13:22 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|