chinese/chinese-calendar: New port: Chinese traditional calendar

This commit is contained in:
Yuri Victorovich 2022-11-20 13:48:26 -08:00
parent 62fcda1a88
commit 164e2aec2f
6 changed files with 137 additions and 0 deletions

View file

@ -18,6 +18,7 @@
SUBDIR += cconv
SUBDIR += celvis
SUBDIR += chiconv
SUBDIR += chinese-calendar
SUBDIR += cless
SUBDIR += cnprint
SUBDIR += dictd-database

View file

@ -0,0 +1,40 @@
PORTNAME= chinese-calendar
DISTVERSION= 1.0.3.r59
CATEGORIES= chinese
MAINTAINER= yuri@FreeBSD.org
COMMENT= Chinese traditional calendar
WWW= https://github.com/WhiredPlanck/chinese-calendar
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= bash:shells/bash
USES= desktop-file-utils gl qmake qt:5 shebangfix
USE_QT= core gui network sql svg widgets buildtools:build
USE_GL= gl
USE_GITHUB= yes
GH_ACCOUNT= WhiredPlanck
GH_TUPLE= itay-grudev:SingleApplication:e99b8df:singleapplication/src/singleapplication
SHEBANG_FILES= data/chinese-calendar-autostart
CXXFLAGS+= -I${WRKSRC}/src
post-patch:
@${FIND} ${WRKSRC} -name "*.desktop" -o -name "*.qss" | ${XARGS} ${REINPLACE_CMD} -i '' 's|/usr/|${PREFIX}/|'
@cd ${WRKSRC} && ${REINPLACE_CMD} -i '' -e 's|/usr/|${PREFIX}/|g' \
data/chinese-calendar-autostart \
src/aboutdialog.ui \
src/backup/aboutdialog.ui \
src/chinesecalendar.cpp \
src/dateitem.cpp \
src/ccbo.cpp \
src/main.cpp
post-install:
@${MV} ${STAGEDIR}/etc/xdg ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>

View file

@ -0,0 +1,5 @@
TIMESTAMP = 1668970477
SHA256 (WhiredPlanck-chinese-calendar-1.0.3.r59_GH0.tar.gz) = aebfb3d0d9d74a4ef112559a32ebd851a6cb2b4fd0c588759202a173fa7b5219
SIZE (WhiredPlanck-chinese-calendar-1.0.3.r59_GH0.tar.gz) = 493710
SHA256 (itay-grudev-SingleApplication-e99b8df_GH0.tar.gz) = 5a75c961e8ce89c205c9b6828550e0a36ccae1b2590fe59839a4addfee786712
SIZE (itay-grudev-SingleApplication-e99b8df_GH0.tar.gz) = 20874

View file

@ -0,0 +1,58 @@
--- chinese-calendar.pro.orig 2022-11-20 19:00:38 UTC
+++ chinese-calendar.pro
@@ -13,20 +13,20 @@ OBJECTS_DIR += build/
#}
inst.files += src/KylinLunar.db
-inst.path = /usr/share/chinese-calendar/db
+inst.path = $$PREFIX/share/chinese-calendar/db
inst1.files += data/img/chinesecalendar-64.png
-inst1.path = /usr/share/pixmaps
+inst1.path = $$PREFIX/share/pixmaps
inst2.files += data/chinese-calendar.desktop
-inst2.path = /usr/share/applications
+inst2.path = $$PREFIX/share/applications
inst3.files += data/chinese-calendar-autostart.desktop
inst3.path = /etc/xdg/autostart
inst4.files += data/chinese-calendar-autostart
-inst4.path = /usr/bin
+inst4.path = $$PREFIX/bin
default_skin.files += data/skin/default/chinesecalendarBGyellow.png \
data/skin/default/no.png \
data/skin/default/note.png \
data/skin/default/ok.png
-default_skin.path = /usr/share/chinese-calendar/skin/default
+default_skin.path = $$PREFIX/share/chinese-calendar/skin/default
blue_skin.files += data/skin/blue/yijibg.png \
data/skin/blue/no.png \
data/skin/blue/note.png \
@@ -40,7 +40,7 @@ blue_skin.files += data/skin/blue/yijibg.png \
data/skin/blue/corner2.png \
data/skin/blue/corner3.png \
data/skin/blue/corner4.png
-blue_skin.path = /usr/share/chinese-calendar/skin/blue
+blue_skin.path = $$PREFIX/share/chinese-calendar/skin/blue
black_skin.files += data/skin/black/chinesecalendar.png \
data/skin/black/no.png \
data/skin/black/no-hover.png \
@@ -50,16 +50,16 @@ black_skin.files += data/skin/black/chinesecalendar.pn
data/skin/black/arrow-left.png \
data/skin/black/arrow-right.png \
data/skin/black/arrow-down.png
-black_skin.path = /usr/share/chinese-calendar/skin/black
+black_skin.path = $$PREFIX/share/chinese-calendar/skin/black
qss.files += data/skin/default-skin.qss \
data/skin/blue-skin.qss \
data/skin/black.qss
-qss.path = /usr/share/chinese-calendar/skin
+qss.path = $$PREFIX/share/chinese-calendar/skin
readme.files += data/skin/README.md
-readme.path = /usr/share/chinese-calendar/skin
+readme.path = $$PREFIX/share/chinese-calendar/skin
target.source += $$TARGET
-target.path = /usr/bin
+target.path = $$PREFIX/bin
INSTALLS += inst \
inst1 \
inst2 \

View file

@ -0,0 +1,3 @@
"Chinese calendar" is a Chinese traditional calendar for Ubuntu Kylin.
You can find festivals and solar terms for China. In line with the Chinese
using habit, it can help users to query date easily.

View file

@ -0,0 +1,30 @@
bin/chinese-calendar
bin/chinese-calendar-autostart
etc/xdg/autostart/chinese-calendar-autostart.desktop
share/applications/chinese-calendar.desktop
%%DATADIR%%/db/KylinLunar.db
%%DATADIR%%/skin/README.md
%%DATADIR%%/skin/black.qss
%%DATADIR%%/skin/black/chinesecalendar.png
%%DATADIR%%/skin/black/no-hover.png
%%DATADIR%%/skin/black/no.png
%%DATADIR%%/skin/black/note.png
%%DATADIR%%/skin/black/ok-hover.png
%%DATADIR%%/skin/black/ok.png
%%DATADIR%%/skin/blue-skin.qss
%%DATADIR%%/skin/blue/corner1.png
%%DATADIR%%/skin/blue/corner2.png
%%DATADIR%%/skin/blue/corner3.png
%%DATADIR%%/skin/blue/corner4.png
%%DATADIR%%/skin/blue/left-1.png
%%DATADIR%%/skin/blue/left-2.png
%%DATADIR%%/skin/blue/normaldate.png
%%DATADIR%%/skin/blue/right-1.png
%%DATADIR%%/skin/blue/right-2.png
%%DATADIR%%/skin/blue/yijibg.png
%%DATADIR%%/skin/default-skin.qss
%%DATADIR%%/skin/default/chinesecalendarBGyellow.png
%%DATADIR%%/skin/default/no.png
%%DATADIR%%/skin/default/note.png
%%DATADIR%%/skin/default/ok.png
share/pixmaps/chinesecalendar-64.png