Annotation of pkgsrc/lang/python/egg.mk, revision 1.11

1.11    ! gdt         1: # $NetBSD: egg.mk,v 1.10 2009/11/03 20:20:05 joerg Exp $
1.1       joerg       2: #
                      3: # Common logic to handle Python Eggs
                      4: #
1.8       joerg       5: .include "../../mk/bsd.fast.prefs.mk"
1.1       joerg       6: 
1.11    ! gdt         7: # This file should be included to package python "distributions" which
        !             8: # use setuptools to create an egg.  The presence of egg-info in a
        !             9: # package does not indicate that the package is an egg.
        !            10: 
1.6       epg        11: EGG_NAME?=     ${DISTNAME}
                     12: 
1.1       joerg      13: PYDISTUTILSPKG=        yes
                     14: PY_PATCHPLIST= yes
                     15: 
1.2       joerg      16: PLIST_SUBST+=  EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
                     17: PLIST_SUBST+=  EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
1.5       epg        18: PRINT_PLIST_AWK+=      { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
                     19:                               "$${EGG_INFODIR}") }
                     20: PRINT_PLIST_AWK+=      { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
                     21:                               "$${EGG_NAME}-nspkg.pth") }
1.1       joerg      22: 
                     23: _PYSETUPTOOLSINSTALLARGS=      --single-version-externally-managed
1.3       joerg      24: .if ${_USE_DESTDIR} == "no"
                     25: _PYSETUPTOOLSINSTALLARGS+=     --root=/
                     26: .endif
1.1       joerg      27: 
1.7       joerg      28: DEPENDS+=      ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
1.1       joerg      29: 
                     30: INSTALLATION_DIRS+=    ${PYSITELIB}
                     31: 
                     32: .include "../../lang/python/extension.mk"

CVSweb <webmaster@jp.NetBSD.org>