1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Restore WITHOUT_PYTHON knob.

This commit is contained in:
Alexander Nedotsukov 2005-03-12 21:45:29 +00:00
parent 0fb2fe3b9c
commit d05df42b0b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131041
2 changed files with 18 additions and 6 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libglade2
PORTVERSION= 2.5.1
PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.5
@ -16,15 +17,11 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME glade library
BUILD_DEPENDS= ${PYEXPAT}
RUN_DEPENDS= ${PYEXPAT} \
xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
RUN_DEPENDS= xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_PYTHON= yes
USE_LIBTOOL_VER=15
USE_GNOME= gnomehack libxml2 gtk20
INSTALLS_SHLIB= yes
@ -37,4 +34,19 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
PLIST_SUB= XMLCATALOG="${LOCALBASE}/bin/xmlcatalog" \
CATALOG_PORTS_XML="${LOCALBASE}/share/xml/catalog.ports"
.if !defined(WITHOUT_PYTHON)
BUILD_DEPENDS+= ${PYEXPAT}
RUN_DEPENDS+= ${PYEXPAT}
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
.else
USE_REINPLACE= yes
PLIST_SUB+= PYTHON="@comment "
post-patch:
@${REINPLACE_CMD} -E 's/in (python.*)+ none/in none/' \
${WRKSRC}/configure
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
bin/libglade-convert
%%PYTHON%%bin/libglade-convert
include/libglade-2.0/glade/glade-build.h
include/libglade-2.0/glade/glade-init.h
include/libglade-2.0/glade/glade-parser.h