1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Stage [1]

- Add LICENSE [1]
- Pet portlint [1]
- Move freetds version check to pre-build to avoid issues when patching when freetds isn't installed

PR:		ports/188646
Submitted by:	Bartek Rutkowski <ports@robakdesign.com>
Approved by:	portmgr@ (blanket)
This commit is contained in:
Steve Wills 2014-04-15 15:53:59 +00:00
parent d157d78b69
commit 51a7646919
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351344
2 changed files with 11 additions and 9 deletions

View File

@ -3,14 +3,16 @@
PORTNAME= sybase
PORTVERSION= 0.37
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= databases python
MASTER_SITES= http://object-craft.com.au/projects/sybase/download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX}
MAINTAINER= gnb@itga.com.au
COMMENT= A Python Database API interface to the Sybase RDBMS
COMMENT= Python Database API interface to the Sybase RDBMS
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libtds.so:${PORTSDIR}/databases/freetds
@ -20,9 +22,9 @@ USE_PYDISTUTILS= yes
.if defined(TDS_VERSION)
TDS_SUF="=${TDS_VERSION}"
.else
NO_STAGE= yes
pre-fetch:
@V=`${PKG_INFO} | sed -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
pre-build:
@V=`${PKG_INFO} | ${SED} -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
if [ $$V -le 60 ]; then \
${ECHO_MSG} "Suggest you update your FreeTDS port to at least version 0.61" ; \
${ECHO_MSG} "Otherwise, you will need to add TDS_VERSION=$$V to the Make command" ; \
@ -45,9 +47,9 @@ do-build:
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
@${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${EXAMPLESDIR}
@${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${STAGEDIR}${EXAMPLESDIR}
@${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -3,4 +3,4 @@ Sybase package supports all of the Python Database API, version 2.0
with extensions.
Author: Dave Cole <djc@object-craft.com.au>
WWW: http://object-craft.com.au/projects/sybase/
WWW: http://object-craft.com.au/projects/sybase/