From nobody Sun Nov 20 21:50:11 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NFkhg4Wj5z4hQrx; Sun, 20 Nov 2022 21:50:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NFkhg3rPNz3MCJ; Sun, 20 Nov 2022 21:50:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668981011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rcDXA3n4/mcMC3k/C3/ITGGwDVhP4vvTQFY7ZTnnynk=; b=HDoENqQK2t1+rrCDPC4qAGTgF4cWeYVTxsXlvqcko9ShzkerdMsLCqCn5KVjFyzv3NR8pr qqJb8YvRVvVjA7JTPlQqL5HdZCIUXgcj2J2RvVRaxNL70tb2RPFwi+4n8BxMk/Ga6TiB7l ECp6fX2sBBKOtDe7aD/p9mR746pgijwGTVc4g92I2H23m7/inKcpO4M7SHYTsjTRjQjLfU FaEkALUlqPs+kCEyvQY5TbOWjADs/pvd2c3uLyDlA5gp6/KR4+qj8n2OccVgUXjRiyGbt2 99KGwcbH+TICx/RvTFTmZeRpxW2j3+3LvifVxDrCkyob8gorlJPvFhI11EGLgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668981011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rcDXA3n4/mcMC3k/C3/ITGGwDVhP4vvTQFY7ZTnnynk=; b=RoO+AfPJx1a/YXSLlRIj1n/LYxbziuvXiyj3xzwlowIwzkZuV+iuIMhYfZO17uQP3IEXBf 57cHywLSOJs59mwRtpL+TNLyOyAcPnav/aBbiQ9xjwUk3DtO7aGz5IBFhLudWPav7FauWx pewvVS3oIe0ZKorQSOq+Y51Oq9mEpj2PwW+I4MMyu0aKMwe8h7smwuzSQdPGKzgpRwEv6U iUotGUf9+8UIXsFJiMBoeQYA26NjKeb+dPr0Ru1LqvueU927ixPVRlRf8SeVWzTLyViBiW PkC5HUidskH9Z5yIUG/iVpAzWfK0xP9T5rxOvz3WR4gw7Otnizweu61ftmJsSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668981011; a=rsa-sha256; cv=none; b=cjJA5IZnGR0HhyOZolVLCpKlQHoddYCCSJaVV+rTuRT+W3irPhyr8KHoh+optt/Iz2B0xe NrbZ8xkvTGsZQrVPKXSEdu2eUqHZd7e0BZ8fG94mI7itrLiy6PkP+a21U7eszoFaIpBq0j wOYZDZTVuoFAnQ0f5OUnnoz8dowwsGmfLfUPQ7P/beT7pb7YP7Oj0zLC6b8nIfvREmG6Vq 7DFTHpqotJAtwR6ztSKtNpNyxWILAZNOtzfrWASBJLJzR30mLgwTSdIU2QQaQJgpwazPVd g+kQy44dL/+bVTzVL7v5sJq9GClWaoP6bqiQkVKsGz4qhv3ekKackwk/iwZTsw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NFkhg2qSMzfqh; Sun, 20 Nov 2022 21:50:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AKLoBiW013404; Sun, 20 Nov 2022 21:50:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AKLoB84013400; Sun, 20 Nov 2022 21:50:11 GMT (envelope-from git) Date: Sun, 20 Nov 2022 21:50:11 GMT Message-Id: <202211202150.2AKLoB84013400@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 164e2aec2fe2 - main - chinese/chinese-calendar: New port: Chinese traditional calendar List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 164e2aec2fe2612e5a4f5eeef6807a876d52929e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=164e2aec2fe2612e5a4f5eeef6807a876d52929e commit 164e2aec2fe2612e5a4f5eeef6807a876d52929e Author: Yuri Victorovich AuthorDate: 2022-11-20 21:48:26 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-20 21:50:03 +0000 chinese/chinese-calendar: New port: Chinese traditional calendar --- chinese/Makefile | 1 + chinese/chinese-calendar/Makefile | 40 +++++++++++++++ chinese/chinese-calendar/distinfo | 5 ++ .../files/patch-chinese-calendar.pro | 58 ++++++++++++++++++++++ chinese/chinese-calendar/pkg-descr | 3 ++ chinese/chinese-calendar/pkg-plist | 30 +++++++++++ 6 files changed, 137 insertions(+) diff --git a/chinese/Makefile b/chinese/Makefile index c6ee7b425749..4f521a2331f5 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -18,6 +18,7 @@ SUBDIR += cconv SUBDIR += celvis SUBDIR += chiconv + SUBDIR += chinese-calendar SUBDIR += cless SUBDIR += cnprint SUBDIR += dictd-database diff --git a/chinese/chinese-calendar/Makefile b/chinese/chinese-calendar/Makefile new file mode 100644 index 000000000000..dbb6607e48f1 --- /dev/null +++ b/chinese/chinese-calendar/Makefile @@ -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 diff --git a/chinese/chinese-calendar/distinfo b/chinese/chinese-calendar/distinfo new file mode 100644 index 000000000000..ba2ed0fabb03 --- /dev/null +++ b/chinese/chinese-calendar/distinfo @@ -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 diff --git a/chinese/chinese-calendar/files/patch-chinese-calendar.pro b/chinese/chinese-calendar/files/patch-chinese-calendar.pro new file mode 100644 index 000000000000..73d93df25ed5 --- /dev/null +++ b/chinese/chinese-calendar/files/patch-chinese-calendar.pro @@ -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 \ diff --git a/chinese/chinese-calendar/pkg-descr b/chinese/chinese-calendar/pkg-descr new file mode 100644 index 000000000000..b30074e741f9 --- /dev/null +++ b/chinese/chinese-calendar/pkg-descr @@ -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. diff --git a/chinese/chinese-calendar/pkg-plist b/chinese/chinese-calendar/pkg-plist new file mode 100644 index 000000000000..3d9f83ddbb86 --- /dev/null +++ b/chinese/chinese-calendar/pkg-plist @@ -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