Skip to content

Commit

Permalink
databases/pear-DB_DataObject: Change the way *_DEPENDS are set
Browse files Browse the repository at this point in the history
- Remove BUILD_DEPENDS
- Update version requirement of RUN_DEPENDS
- Add NO_ARCH
- Update options:
  - Remove PEAR_/PEAR:: prefix
  - Add DB option
- Update pkg-descr
  • Loading branch information
sunpoet committed Sep 19, 2021
1 parent 780b698 commit d350da2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
19 changes: 10 additions & 9 deletions databases/pear-DB_DataObject/Makefile
Expand Up @@ -11,19 +11,20 @@ COMMENT= SQL Builder, Object Interface to Database Tables
LICENSE= PHP301
LICENSE_FILE= ${WRKSRC}/docs/LICENCE.txt

BUILD_DEPENDS= ${PEAR_PKGNAMEPREFIX}DB>=1.9.3:databases/pear-DB@${PHP_FLAVOR} \
${PEAR_PKGNAMEPREFIX}Date>=1.4.7:devel/pear-Date@${PHP_FLAVOR}
RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}DB>=1.9.3:databases/pear-DB@${PHP_FLAVOR} \
${PEAR_PKGNAMEPREFIX}Date>=1.4.7:devel/pear-Date@${PHP_FLAVOR}
RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}Date>=1.4.3:devel/pear-Date@${PHP_FLAVOR}

USES= pear

OPTIONS_DEFINE= PEAR_MDB2 PEAR_VALIDATE
NO_ARCH= yes

PEAR_MDB2_DESC= PEAR::MDB2 support
PEAR_VALIDATE_DESC= PEAR::Validate support
OPTIONS_DEFINE= DB MDB2 VALIDATE
OPTIONS_DEFAULT=DB
DB_DESC= DB support
MDB2_DESC= MDB2 support
VALIDATE_DESC= Validate support

PEAR_MDB2_RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}MDB2>=2.5.0.b5:databases/pear-MDB2@${PHP_FLAVOR}
PEAR_VALIDATE_RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}Validate>=0.8.5:devel/pear-Validate@${PHP_FLAVOR}
DB_RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}DB>=1.7.0:databases/pear-DB@${PHP_FLAVOR}
MDB2_RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}MDB2>=2.0.0.r1:databases/pear-MDB2@${PHP_FLAVOR}
VALIDATE_RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}Validate>=0.1.1:devel/pear-Validate@${PHP_FLAVOR}

.include <bsd.port.mk>
7 changes: 4 additions & 3 deletions databases/pear-DB_DataObject/pkg-descr
@@ -1,8 +1,9 @@
PEAR::DB_DataObject performs 2 tasks:
DataObject performs 2 tasks:
1. Builds SQL statements based on the objects vars and the builder methods.
2. acts as a datastore for a table row.

The core class is designed to be extended for each of your tables so that you
put the data logic inside the data classes.
included is a Generator to make your configuration files and your base classes.
put the data logic inside the data classes. A generator is included to make your
configuration files and your base classes.

WWW: https://pear.php.net/package/DB_DataObject

0 comments on commit d350da2

Please sign in to comment.