diff options
author | jhb <jhb@FreeBSD.org> | 2012-03-10 01:03:28 +0800 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-03-10 01:03:28 +0800 |
commit | 5f00587838027625181928c2453f63368783a553 (patch) | |
tree | 746784d92d1f8d61c0c67495e6f01fa894739e50 /devel | |
parent | 12e4043d00ebcfede22efde992bafb8c0f1c9f18 (diff) | |
download | freebsd-ports-gnome-5f00587838027625181928c2453f63368783a553.tar.gz freebsd-ports-gnome-5f00587838027625181928c2453f63368783a553.tar.zst freebsd-ports-gnome-5f00587838027625181928c2453f63368783a553.zip |
- Install the python bindings when python is enabled.
- Bump portrevision to 2.
Reviewed by: Luca Pizzamiglio (maintainer)
Feature safe: yes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gdb/Makefile | 10 | ||||
-rw-r--r-- | devel/gdb/pkg-plist | 11 |
2 files changed, 20 insertions, 1 deletions
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 <bsd.port.post.mk> 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 |