mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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:
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
|
@ -3,14 +3,16 @@
|
||||||
|
|
||||||
PORTNAME= sybase
|
PORTNAME= sybase
|
||||||
PORTVERSION= 0.37
|
PORTVERSION= 0.37
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= databases python
|
CATEGORIES= databases python
|
||||||
MASTER_SITES= http://object-craft.com.au/projects/sybase/download/
|
MASTER_SITES= http://object-craft.com.au/projects/sybase/download/
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX}
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX}
|
||||||
|
|
||||||
MAINTAINER= gnb@itga.com.au
|
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
|
LIB_DEPENDS= libtds.so:${PORTSDIR}/databases/freetds
|
||||||
|
|
||||||
|
@ -20,9 +22,9 @@ USE_PYDISTUTILS= yes
|
||||||
.if defined(TDS_VERSION)
|
.if defined(TDS_VERSION)
|
||||||
TDS_SUF="=${TDS_VERSION}"
|
TDS_SUF="=${TDS_VERSION}"
|
||||||
.else
|
.else
|
||||||
NO_STAGE= yes
|
|
||||||
pre-fetch:
|
pre-build:
|
||||||
@V=`${PKG_INFO} | sed -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
|
@V=`${PKG_INFO} | ${SED} -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
|
||||||
if [ $$V -le 60 ]; then \
|
if [ $$V -le 60 ]; then \
|
||||||
${ECHO_MSG} "Suggest you update your FreeTDS port to at least version 0.61" ; \
|
${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" ; \
|
${ECHO_MSG} "Otherwise, you will need to add TDS_VERSION=$$V to the Make command" ; \
|
||||||
|
@ -45,9 +47,9 @@ do-build:
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${EXAMPLESDIR}
|
@${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${STAGEDIR}${EXAMPLESDIR}
|
||||||
@${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${DOCSDIR}
|
@${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue