From 241a33fdffbe2ae5fb3902db883691a9278bd1d2 Mon Sep 17 00:00:00 2001 From: maho Date: Fri, 7 Mar 2008 02:38:09 +0000 Subject: Update to 1.0r2. --- biology/pymol/Makefile | 49 +++++++++---------------------------------------- 1 file changed, 9 insertions(+), 40 deletions(-) (limited to 'biology/pymol/Makefile') diff --git a/biology/pymol/Makefile b/biology/pymol/Makefile index dc1d75cfe776..d053e5b0e62e 100644 --- a/biology/pymol/Makefile +++ b/biology/pymol/Makefile @@ -5,13 +5,9 @@ # $FreeBSD$ PORTNAME= pymol -PORTVERSION= 0.99rc6 -PORTREVISION= 2 +PORTVERSION= 1.0r2 CATEGORIES= biology python -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= pymol -DISTNAME= pymol-${PORTVERSION:S/./_/}-src -EXTRACT_SUFX= .tgz +MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|maho/pymol|} MAINTAINER= maho@FreeBSD.org COMMENT= Free and Open-Source molecular modeling system @@ -26,42 +22,15 @@ WRKSRC= ${WRKDIR}/pymol-${PORTVERSION} USE_GMAKE= yes USE_PYTHON= yes -.include +pre-build: + @${REINPLACE_CMD} -e "s+%%LOCALBASE%%+${LOCALBASE}+" ${WRKSRC}/setup.py -.if ${ARCH} == "ia64" -BROKEN= Does not build on ${ARCH} -.endif - -.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" || ${ARCH} == "ia64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - -pre-patch: - @${CP} ${WRKSRC}/setup/Rules.linux ${WRKSRC}/Rules.make - -post-patch: - @${CP} ${WRKSRC}/setup/pymol.com.linux-rh7x ${WRKSRC}/pymol - @${REINPLACE_CMD} -e 's,@PREFIX@,${PREFIX},g' -e 's,@LOCALBASE@,${LOCALBASE},g' ${WRKSRC}/pymol - ${REINPLACE_CMD} -e 's,@PYTHON_VERSION@,${PYTHON_VERSION},g' \ - -e 's,@LOCALBASE@,${LOCALBASE},g' \ - -e 's,@X11BASE@,${X11BASE},g' \ - -e 's,@CFLAGS@,${CFLAGS},g' \ - -e 's,@CC@,${CC},g' \ - -e 's,@PICFLAG@,${PICFLAG},g' ${WRKSRC}/Rules.make +do-build: + @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build do-install: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install \ + ; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup2.py install) @${INSTALL_SCRIPT} ${WRKSRC}/pymol ${PREFIX}/bin/pymol - @${MKDIR} ${PREFIX}/share/pymol - @${TAR} -C ${WRKSRC} -chf - data modules test | \ - ${TAR} -xf - -C ${PREFIX}/share/pymol -.if !defined(NOPORTDOCS) - @${MKDIR} ${EXAMPLESDIR} - @${TAR} -C ${WRKSRC}/examples --exclude package -chf - . | \ - ${TAR} -xf - -C ${EXAMPLESDIR} -.endif - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules -.include +.include -- cgit