From 2b231b984808d69e7356b90f0c283a9cad0e6ca5 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 9 Mar 2012 17:03:28 +0000 Subject: - Install the python bindings when python is enabled. - Bump portrevision to 2. Reviewed by: Luca Pizzamiglio (maintainer) Feature safe: yes --- devel/gdb/Makefile | 10 +++++++++- devel/gdb/pkg-plist | 11 +++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'devel/gdb') diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 54bed0ef8176..cdfe64f55665 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -8,7 +8,7 @@ PORTNAME= gdb PORTVERSION= 7.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,} MASTER_SITE_SUBDIR=gdb/:gdb @@ -25,6 +25,7 @@ USE_ICONV= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ + --with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ --with-libiconv-prefix=${LOCALBASE} \ --with-system-readline \ --without-libunwind \ @@ -78,8 +79,10 @@ CONFIGURE_ARGS+= --without-expat .if defined(WITH_PYTHON) CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} +PLIST_SUB+= PYTHON="" .else CONFIGURE_ARGS+= --without-python +PLIST_SUB+= PYTHON="@comment " .endif .if ${ARCH} == "amd64" @@ -98,7 +101,12 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER} ${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER} ${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1 +.if defined(WITH_PYTHON) + (cd ${WRKSRC}/gdb; ${GMAKE} install-python ) + (cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python ) +.endif .if defined(WITH_GDB_LINK) ${LN} -s ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdb .endif + .include diff --git a/devel/gdb/pkg-plist b/devel/gdb/pkg-plist index 9fef05cf30f3..3359cb6713f9 100644 --- a/devel/gdb/pkg-plist +++ b/devel/gdb/pkg-plist @@ -1,3 +1,14 @@ bin/gdb%%VER%% bin/gdbtui%%VER%% +%%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/types.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/printing.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/prompt.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/__init__.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/pretty_printers.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/prompt.py +%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb/command +%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb +%%PYTHON%%@dirrm share/gdb%%VER%%/python +%%PYTHON%%@dirrm share/gdb%%VER%% @unexec if $( %%GDB_LINK%% ) ; then rm -f %%PREFIX%%/bin/gdb; fi -- cgit v1.2.3