pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

php-basercms: align with www/php-basercms



Module Name:	pkgsrc-wip
Committed By:	Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By:	steleto
Date:		Fri May 27 22:37:41 2022 +0900
Changeset:	cba93dfe17b04f29d198011d700d2082cdefc17c

Modified Files:
	php-basercms/DESCR
	php-basercms/INSTALL
	php-basercms/Makefile
	php-basercms/options.mk

Log Message:
php-basercms: align with www/php-basercms

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cba93dfe17b04f29d198011d700d2082cdefc17c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 php-basercms/DESCR      |  7 ++-----
 php-basercms/INSTALL    |  7 +++----
 php-basercms/Makefile   | 32 ++++++++++++++------------------
 php-basercms/options.mk |  6 +++---
 4 files changed, 22 insertions(+), 30 deletions(-)

diffs:
diff --git a/php-basercms/DESCR b/php-basercms/DESCR
index 805d8c6dcd..5fcf54824b 100644
--- a/php-basercms/DESCR
+++ b/php-basercms/DESCR
@@ -1,5 +1,2 @@
-baserCMS is a japanese CMS (Content Management System) that offers
-intuitive operation, high maintainability, and the freedom to
-customize websites. It is open source software made by japanese people
-for japanese people, by everyone. It is available free of charge, can
-run on a variety of servers, and is easy to install.
+Open source Content Management System based on CakePHP framework.
+This CMS's user interface is entirely written in Japanese.
diff --git a/php-basercms/INSTALL b/php-basercms/INSTALL
index 061b2da141..aec8b56a18 100755
--- a/php-basercms/INSTALL
+++ b/php-basercms/INSTALL
@@ -4,12 +4,11 @@
 
 WWWGRP="@WWWGRP@"
 WWWOWN="@WWWOWN@"
-BASERCMS_DIR="@PREFIX@/@BASERCMS_DIR@"
+BC_DIR="@PREFIX@/@BC_DIR@"
 
 case "${STAGE}" in
 POST-INSTALL)
-	cd ${BASERCMS_DIR} &&
-		${CHOWN} -R ${WWWOWN} ${BASERCMS_DIR} &&
-		${CHGRP} -R ${WWWGRP} ${BASERCMS_DIR}
+	${CHOWN} -R ${WWWOWN} ${BC_DIR} &&
+	${CHGRP} -R ${WWWGRP} ${BC_DIR}
 	;;
 esac
diff --git a/php-basercms/Makefile b/php-basercms/Makefile
index 3b2249fd8e..4d76e53be3 100644
--- a/php-basercms/Makefile
+++ b/php-basercms/Makefile
@@ -1,6 +1,7 @@
 # $NetBSD$
 
-DISTNAME=	basercms-4.5.6
+BASERVER=	4.5.6
+DISTNAME=	basercms-${BASERVER}
 PKGNAME=	${PHP_PKG_PREFIX}-${DISTNAME}
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_GITHUB:=baserproject/}
@@ -9,7 +10,7 @@ GITHUB_TAG=	${DISTNAME}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://basercms.net/
-COMMENT=	Based Website Development Project
+COMMENT=	Easy to use Content Management System for Japan/Japanese
 LICENSE=	mit
 
 DEPENDS+=	${PHP_PKG_PREFIX}-gd>=5.6.0:../../graphics/php-gd
@@ -18,16 +19,20 @@ DEPENDS+=	${PHP_PKG_PREFIX}-mbstring>=5.6.0:../../converters/php-mbstring
 DEPENDS+=	${PHP_PKG_PREFIX}-pdo>=5.6.0:../../databases/php-pdo
 DEPENDS+=	${PHP_PKG_PREFIX}-zip>=5.6.0:../../archivers/php-zip
 
-.include "options.mk"
-
 WRKSRC=			${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
-USE_PKGLOCALEDIR=	yes
 USE_LANGUAGES=		# none
 
-NO_BUILD=	yes
 USE_TOOLS+=	bash:run pax
 
-BASERCMS_DIR=	share/basercms
+NO_BUILD=	yes
+
+CHECK_INTERPRETER_SKIP+=	share/basercms/app/Console/*
+CHECK_INTERPRETER_SKIP+=	share/basercms/lib/Cake/Console/*
+
+BC_DIR=		share/basercms
+INSTALLATION_DIRS+=	${BC_DIR}
+
+.include "options.mk"
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -41,20 +46,11 @@ PKG_GROUPS_VARS=	APACHE_GROUP
 
 BUILD_DEFS+=	APACHE_GROUP APACHE_USER
 FILES_SUBST+=	WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
-		BASERCMS_DIR=${BASERCMS_DIR}
-
-REPLACE_INTERPRETER+=	php
-REPLACE.php.old=	.*php[^ ]*
-REPLACE.php.new=	${PREFIX}/bin/php
-REPLACE_FILES.php=	app/Console/cake.php
-REPLACE_FILES.php+=	lib/Cake/Console/Templates/skel/Console/cake.php
-REPLACE_FILES.php+=	lib/Cake/Console/cake.php
-
-INSTALLATION_DIRS=	${BASERCMS_DIR}
+		BC_DIR=${BC_DIR}
 
 do-install:
 	cd ${WRKSRC} && ${FIND} . -type f \! -name '*.orig' -print | \
-		pax -rw -pmp ${DESTDIR}${PREFIX}/${BASERCMS_DIR}
+		pax -rw -pmp ${DESTDIR}${PREFIX}/${BC_DIR}
 
 .include "../../lang/php/phpversion.mk"
 .include "../../lang/php/json.mk"
diff --git a/php-basercms/options.mk b/php-basercms/options.mk
index 5ae35d74e6..5f15daff33 100644
--- a/php-basercms/options.mk
+++ b/php-basercms/options.mk
@@ -3,9 +3,9 @@
 PKG_OPTIONS_VAR=	PKG_OPTIONS.php-basercms
 
 PKG_OPTIONS_REQUIRED_GROUPS=	db
-PKG_OPTIONS_GROUP.db=		mysql sqlite3 pgsql
+PKG_OPTIONS_GROUP.db=		mysql pgsql sqlite
 
-PKG_SUGGESTED_OPTIONS=	sqlite3
+PKG_SUGGESTED_OPTIONS=	mysql
 
 .include "../../mk/bsd.options.mk"
 
@@ -14,7 +14,7 @@ PKG_SUGGESTED_OPTIONS=	sqlite3
 ###
 .if !empty(PKG_OPTIONS:Mmysql)
 DEPENDS+=	${PHP_PKG_PREFIX}-pdo_mysql>=5.6.0:../../databases/php-pdo_mysql
-.elif !empty(PKG_OPTIONS:Msqlite3)
+.elif !empty(PKG_OPTIONS:Msqlite)
 DEPENDS+=	${PHP_PKG_PREFIX}-pdo_sqlite>=5.6.0:../../databases/php-pdo_sqlite
 DEPENDS+=	${PHP_PKG_PREFIX}-sqlite3>=5.6.0:../../databases/php-sqlite3
 .elif !empty(PKG_OPTIONS:Mpgsql)


Home | Main Index | Thread Index | Old Index