Skip to content

Commit

Permalink
Mark as not ready for python-3.x.
Browse files Browse the repository at this point in the history
While here, slightly clean up Makefile and fix conflict with itself
by adding ${PYVERSSUFFIX} to pymol binary.
Bump PKGREVISION.
  • Loading branch information
0-wiz-0 committed Feb 17, 2014
1 parent 45aeccc commit 7605429
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions biology/py-mol/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.20 2014/01/18 19:56:36 wiz Exp $
# $NetBSD: Makefile,v 1.21 2014/02/17 14:32:28 wiz Exp $

DISTNAME= pymol-v1.5.0.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pymol-v/mol-/}
EGG_NAME= pymol-1.5.0.1
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= biology
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pymol/}
EXTRACT_SUFX= .tar.bz2
Expand All @@ -12,33 +12,35 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.pymol.org/
COMMENT= Molecular Visualization System

USE_TOOLS+= csh:run

DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy

PYTHON_VERSIONED_DEPENDENCIES= Pmw
PYTHON_VERSIONS_INCOMPATIBLE= 33

WRKSRC= ${WRKDIR}/pymol

USE_TOOLS+= csh:run

CONFLICTS= pymol-[0-9]*
PYTHON_SELF_CONFLICT= yes

USE_LANGUAGES= c c++

REPLACE_CSH= test/vdiff
REPLACE_PYTHON= test/cyg test/run test/show test/win.py
REPLACE_PYTHON= test/cyg test/run test/show test/win.py modules/pmg_tk/startup/apbs_tools.py

# not used
CHECK_PORTABILITY_SKIP+= setup/*

INSTALLATION_DIRS= bin

PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}

# Gross hack
PYSETUPBUILDTARGET= install ${_PYSETUPINSTALLARGS}

post-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} setup2.py install ${_PYSETUPINSTALLARGS}
${INSTALL_SCRIPT} ${WRKSRC}/pymol ${DESTDIR}${PREFIX}/bin/pymol
${INSTALL_SCRIPT} ${WRKSRC}/pymol ${DESTDIR}${PREFIX}/bin/pymol${PYVERSSUFFIX}

.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
Expand Down
4 changes: 2 additions & 2 deletions biology/py-mol/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@comment $NetBSD: PLIST,v 1.5 2013/04/14 19:48:56 joerg Exp $
bin/pymol
@comment $NetBSD: PLIST,v 1.6 2014/02/17 14:32:28 wiz Exp $
bin/pymol${PYVERSSUFFIX}
${PYSITELIB}/chempy/__init__.py
${PYSITELIB}/chempy/__init__.pyc
${PYSITELIB}/chempy/__init__.pyo
Expand Down

0 comments on commit 7605429

Please sign in to comment.