Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # $OpenBSD: Makefile,v 1.22 2016/12/25 15:42:09 zhuk Exp $
  2. COMMENT = extensible and flexible object relational mapper
  3. MODULES = cpan databases/postgresql databases/mariadb
  4. PKG_ARCH = *
  5. DISTNAME = DBIx-Class-0.082820
  6. CATEGORIES = databases devel
  7. REVISION = 0
  8. MAINTAINER = Andrew Fresh <afresh1@openbsd.org>
  9. # Artistic
  10. PERMIT_PACKAGE_CDROM = Yes
  11. CONFIGURE_ARGS = --skipdeps
  12. RUN_DEPENDS = databases/p5-DBI>=1.57 \
  13. databases/p5-Data-Page>=2.00 \
  14. databases/p5-SQL-Abstract>=1.81 \
  15. devel/p5-Class-Accessor-Grouped>=0.10012 \
  16. devel/p5-Class-C3-Componentised>=1.0009 \
  17. devel/p5-Class-Inspector>=1.24 \
  18. devel/p5-Config-Any>=0.20 \
  19. devel/p5-Context-Preserve>=0.01 \
  20. devel/p5-Data-Dumper-Concise>=2.020 \
  21. devel/p5-Devel-GlobalDestruction>=0.09 \
  22. devel/p5-Hash-Merge>=0.12 \
  23. devel/p5-MRO-Compat>=0.12 \
  24. devel/p5-Module-Find>=0.07 \
  25. devel/p5-Moo>=2.000 \
  26. devel/p5-Path-Class>=0.18 \
  27. devel/p5-Scope-Guard>=0.03 \
  28. devel/p5-Sub-Name>=0.04 \
  29. devel/p5-Try-Tiny>=0.07 \
  30. devel/p5-namespace-clean>=0.24
  31. TEST_DEPENDS = databases/p5-DBD-SQLite>=1.29 \
  32. devel/p5-Package-Stash>=0.28 \
  33. devel/p5-Test-Deep>=0.101 \
  34. devel/p5-Test-Exception>=0.31 \
  35. devel/p5-Test-Warn>=0.21
  36. # Optional depends to avoid skipping tests
  37. TEST_DEPENDS += converters/p5-JSON-Any \
  38. devel/p5-Getopt-Long-Descriptive \
  39. devel/p5-Module-Pluggable \
  40. devel/p5-Sys-SigAction \
  41. math/p5-Math-Base36 \
  42. textproc/p5-Text-CSV \
  43. databases/p5-Class-DBI \
  44. databases/p5-SQL-Translator>=0.11018
  45. TEST_DEPENDS += devel/p5-DateTime-Format-MySQL \
  46. devel/p5-DateTime-Format-Pg \
  47. devel/p5-DateTime-Format-SQLite \
  48. devel/p5-DateTime-Format-Strptime \
  49. devel/p5-Time-Piece-MySQL
  50. TEST_DEPENDS += devel/p5-Moose \
  51. devel/p5-MooseX-Types \
  52. devel/p5-MooseX-Types-LoadableClass \
  53. devel/p5-MooseX-Types-Path-Class
  54. # More tests can be enabled by porting
  55. # * p5-Class-DBI-Plugin-DeepAbstractSearch
  56. # * p5-Cpanel-JSON-XS
  57. # * p5-MooseX-Types-JSON
  58. MAKE_ENV = RELEASE_TESTING=Yes \
  59. TEST_POD=Yes
  60. DATABASE = dbix_class_test
  61. MODPOSTGRESQL_TEST_DBNAME = ${DATABASE}
  62. MAKE_ENV += DBICTEST_PG_DSN='dbi:Pg:dbname=${DATABASE}' \
  63. DBICTEST_PG_USER=${USER} \
  64. DBICTEST_PG_PASS=1
  65. TEST_DEPENDS += databases/p5-DBD-Pg
  66. MODMARIADB_TEST_DBNAME = ${DATABASE}
  67. MAKE_ENV += DBICTEST_MYSQL_DSN='dbi:mysql:database=${DATABASE};mysql_socket=${MODMARIADB_TEST_SOCKET}' \
  68. DBICTEST_MYSQL_USER=root \
  69. DBICTEST_MYSQL_PASS=1
  70. TEST_DEPENDS += databases/p5-DBD-mysql
  71. MODPOSTGRESQL_TEST_CMD = ${MODMARIADB_TEST_TARGET}
  72. do-test:
  73. ${MODPOSTGRESQL_TEST_TARGET}
  74. .include <bsd.port.mk>