freebsd-ports/devel/googlemock/Makefile
John Marino 5e6acdaa65 devel/googlemock, devel/googletest: Upgrade version 1.5 => 1.7
As part of the upgrade process:
  - copy shebangfix and regression-test from googletest to googlemock
  - convert regression-test to TEST option for better integration with
    poudriere and visibility for users
  - make sure configure detects python2 to follow shebangfix
  - add LICENSE=BSD3CLAUSE (idea from comment 0)
  - strip libs per stage-qa
  - enable pthreads by default in devel/googletest
  - enable death tests in devel/googletest
  - enable socket streaming in devel/googletest
  - implement GetThreadCount for death tests in devel/googletest
  - disable streaming tests that fail with old gcc on 9.x in googletest
  - depend on googletest in googlemock as -lgmock fails otherwise [1]
  - pass maintainership to the persistent submitter [2]

PR:		187562
PR:		192736 [2]
PR:		192042 [1]
Approved by:	maintainer timeout (~8 months)
Submitted by:	rakuco [1]
Submitted by:	Jan Beich <jbeich@vfemail.net> [2]
2014-11-25 17:38:09 +00:00

49 lines
1.4 KiB
Makefile

# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$
PORTNAME= googlemock
PORTVERSION= 1.7.0
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE \
https://googlemock.googlecode.com/svn-history/r407/trunk/scripts/:svn
DISTNAME= gmock-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} gmock_doctor.py:svn
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= jbeich@vfemail.net
COMMENT= Library for writing and using C++ mock classes
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= googletest>=1.7.0:${PORTSDIR}/devel/googletest
LIB_DEPENDS= libgtest.so:${PORTSDIR}/devel/googletest
USES= libtool shebangfix zip
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ENV= ac_cv_path_PYTHON=python2
python_OLD_CMD= /usr/bin/env python
python_CMD= /usr/bin/env python2
SHEBANG_FILES= scripts/fuse_gmock_files.py scripts/gmock_doctor.py
OPTIONS_DEFINE= TEST
TEST_USES= python:2,build
TEST_ALL_TARGET=check
post-extract:
# XXX gmock_doctor.py is missing from distfile before r455 or 1.8.0
${CP} ${DISTDIR}/gmock_doctor.py ${WRKSRC}/scripts
post-patch:
# enable vendor make install again (revert r562)
${REINPLACE_CMD} -E 's/ install-(exec|data)-local//' \
${WRKSRC}/Makefile.in
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock-config ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock_doctor.py ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>