git: e122de7cd417 - main - cad/librepcb: Fix translations

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 19 Nov 2021 21:33:30 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e122de7cd417fb9a5dbaf39b025725879f4f3017

commit e122de7cd417fb9a5dbaf39b025725879f4f3017
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-19 21:30:32 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-19 21:33:20 +0000

    cad/librepcb: Fix translations
    
    They were missing because of the i18n submodule revision confusion.
    
    Switched to the tarball which fixed this issue.
---
 cad/librepcb/Makefile  | 27 +++++----------------------
 cad/librepcb/distinfo  | 34 +++-------------------------------
 cad/librepcb/pkg-plist | 14 ++++++++++++++
 3 files changed, 22 insertions(+), 53 deletions(-)

diff --git a/cad/librepcb/Makefile b/cad/librepcb/Makefile
index 9b9a9d12cb06..b932ff4e5e3a 100644
--- a/cad/librepcb/Makefile
+++ b/cad/librepcb/Makefile
@@ -1,6 +1,9 @@
 PORTNAME=	librepcb
 DISTVERSION=	0.1.6
+DISTVERSIONSUFFIX=	-source
+PORTREVISION=	1
 CATEGORIES=	cad
+MASTER_SITES=	https://download.librepcb.org/releases/${DISTVERSION}/
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Schematic and PCB editing software
@@ -8,31 +11,11 @@ COMMENT=	Schematic and PCB editing software
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-USES=		cmake compiler:c++11-lang desktop-file-utils gl qt:5 shared-mime-info
-USE_GITHUB=	yes
-GH_ACCOUNT=	LibrePCB
-GH_PROJECT=	LibrePCB
-GH_TUPLE=	\
-		LibrePCB:delaunay-triangulation:bd71456:delaunay_triangulation/libs/delaunay-triangulation \
-		LibrePCB:dxflib:3b09713:dxflib/libs/dxflib \
-		fontobene:fontobene-qt5:9b8c229:fontobene_qt5/libs/fontobene-qt5 \
-		fontobene:fontobene-fonts:f197bc5:fontobene_fonts/share/librepcb/fontobene \
-		LibrePCB:googletest:1e6322a:googletest/libs/googletest \
-		LibrePCB:hoedown:600c3ee:hoedown/libs/hoedown \
-		LibrePCB:muparser:2deb86a:muparser/libs/muparser \
-		LibrePCB:optional:89d6d30:optional/libs/optional \
-		LibrePCB:parseagle:ce0c8e6:parseagle/libs/parseagle \
-		LibrePCB:quazip:dab1c52:quazip/libs/quazip \
-		LibrePCB:type_safe:c3647fc:type_safe/libs/type_safe \
-		LibrePCB:librepcb-test-data:dc902dc:librepcb_test_data/tests/data \
-		LibrePCB:librepcb-fonts:c30f3b9:fonts/share/librepcb/fonts \
-		LibrePCB:librepcb-i18n:efc96aa:i18n/i18n
-
+USES=		cmake compiler:c++11-lang desktop-file-utils gl qt:5 shared-mime-info zip
 USE_QT=		concurrent core gui network opengl printsupport sql svg xml widgets \
 		buildtools_build linguisttools_build testlib_build qmake_build
 USE_GL=		gl
 
-post-install: # installs unnecessary headers: https://github.com/LibrePCB/LibrePCB/issues/935
-	@${RMDIR} ${STAGEDIR}${DATADIR}/i18n
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 .include <bsd.port.mk>
diff --git a/cad/librepcb/distinfo b/cad/librepcb/distinfo
index 9da90b2e73b8..9dc29b2930f2 100644
--- a/cad/librepcb/distinfo
+++ b/cad/librepcb/distinfo
@@ -1,31 +1,3 @@
-TIMESTAMP = 1637295374
-SHA256 (LibrePCB-LibrePCB-0.1.6_GH0.tar.gz) = 1318212ba8bb797166fd2f1f3e7ce8c5c4e322203a1a65f3c65f7d1bf6427623
-SIZE (LibrePCB-LibrePCB-0.1.6_GH0.tar.gz) = 4274547
-SHA256 (LibrePCB-delaunay-triangulation-bd71456_GH0.tar.gz) = e793d41033cc0a3107ce958ebb6a46e06cae687d081d927f2b7c8021b3797fc3
-SIZE (LibrePCB-delaunay-triangulation-bd71456_GH0.tar.gz) = 22928
-SHA256 (LibrePCB-dxflib-3b09713_GH0.tar.gz) = 6eaaf3e5e46735ebfb6749efb9a4d5bd6ddec157da2597179b599d01532972b0
-SIZE (LibrePCB-dxflib-3b09713_GH0.tar.gz) = 83763
-SHA256 (fontobene-fontobene-qt5-9b8c229_GH0.tar.gz) = 6577505d0f40c4c836fc7de2281a5be414c88a3de43cd16ccb60b71b3e4be1eb
-SIZE (fontobene-fontobene-qt5-9b8c229_GH0.tar.gz) = 11900
-SHA256 (fontobene-fontobene-fonts-f197bc5_GH0.tar.gz) = 2673f798f64ffbecab83fb49430fa5f8ea25d69fce8eddc5f5bd8c6570360db0
-SIZE (fontobene-fontobene-fonts-f197bc5_GH0.tar.gz) = 53775
-SHA256 (LibrePCB-googletest-1e6322a_GH0.tar.gz) = 0a0e7b64668864888d3d8c97cebc054751bec214107c63dac68406dbcc4efe67
-SIZE (LibrePCB-googletest-1e6322a_GH0.tar.gz) = 876415
-SHA256 (LibrePCB-hoedown-600c3ee_GH0.tar.gz) = 6d11dd3cdf3f291d84892ddb4214f980f4e3e7780874c439659aeef2ef514809
-SIZE (LibrePCB-hoedown-600c3ee_GH0.tar.gz) = 67098
-SHA256 (LibrePCB-muparser-2deb86a_GH0.tar.gz) = 3910107951622109a3a49fd5ed24b10b8038266c15bd888ab4083d0957eb2b06
-SIZE (LibrePCB-muparser-2deb86a_GH0.tar.gz) = 106616
-SHA256 (LibrePCB-optional-89d6d30_GH0.tar.gz) = 3a9b7089330bac067aceb5813f102936fcc8480e1b1df91b890e90a457e42d9b
-SIZE (LibrePCB-optional-89d6d30_GH0.tar.gz) = 100872
-SHA256 (LibrePCB-parseagle-ce0c8e6_GH0.tar.gz) = 8bd82adfbebfb5298fb2d13b4c16eae9a022d7a47bb68b6845afc4b9306e6d7d
-SIZE (LibrePCB-parseagle-ce0c8e6_GH0.tar.gz) = 12123
-SHA256 (LibrePCB-quazip-dab1c52_GH0.tar.gz) = b52ddcd9faa62b6d5e81b10162ac3066709eefdb763ddeeef1453cf524eabb51
-SIZE (LibrePCB-quazip-dab1c52_GH0.tar.gz) = 155438
-SHA256 (LibrePCB-type_safe-c3647fc_GH0.tar.gz) = 88ac9ecae0ac13c08c9b876e345c0ad8f25cf81703441712167be78d34f13819
-SIZE (LibrePCB-type_safe-c3647fc_GH0.tar.gz) = 97736
-SHA256 (LibrePCB-librepcb-test-data-dc902dc_GH0.tar.gz) = 234ecdc4725e457a2393e93800fed3f1487741255792ad3319a7bd05706f74b5
-SIZE (LibrePCB-librepcb-test-data-dc902dc_GH0.tar.gz) = 5801490
-SHA256 (LibrePCB-librepcb-fonts-c30f3b9_GH0.tar.gz) = 90a152114a61b1b1fd4a0d4eddb305d90fdc98ddebc1d7efc68a8f0cefbead2f
-SIZE (LibrePCB-librepcb-fonts-c30f3b9_GH0.tar.gz) = 459650
-SHA256 (LibrePCB-librepcb-i18n-efc96aa_GH0.tar.gz) = 4c729fa7087f88d758a3db76f397202af1b66ad95776e4fbe0652143e16993ce
-SIZE (LibrePCB-librepcb-i18n-efc96aa_GH0.tar.gz) = 944
+TIMESTAMP = 1637354142
+SHA256 (librepcb-0.1.6-source.zip) = 8c7bf475ed59eb5b5e4b13073b96b9468ee01fb6980ef2b3471b1fbb39c46721
+SIZE (librepcb-0.1.6-source.zip) = 12671974
diff --git a/cad/librepcb/pkg-plist b/cad/librepcb/pkg-plist
index 5a57d13a5807..1d64a78a3cb5 100644
--- a/cad/librepcb/pkg-plist
+++ b/cad/librepcb/pkg-plist
@@ -17,6 +17,20 @@ share/icons/hicolor/scalable/mimetypes/org.librepcb.LibrePCB-project.svg
 %%DATADIR%%/fonts/NotoSans-Regular.ttf
 %%DATADIR%%/fonts/NotoSansMono-Regular.ttf
 %%DATADIR%%/fonts/README.md
+%%DATADIR%%/i18n/librepcb_cs.qm
+%%DATADIR%%/i18n/librepcb_de.qm
+%%DATADIR%%/i18n/librepcb_en_US.qm
+%%DATADIR%%/i18n/librepcb_eo.qm
+%%DATADIR%%/i18n/librepcb_es.qm
+%%DATADIR%%/i18n/librepcb_fr.qm
+%%DATADIR%%/i18n/librepcb_it.qm
+%%DATADIR%%/i18n/librepcb_pl.qm
+%%DATADIR%%/i18n/librepcb_ru_RU.qm
+%%DATADIR%%/i18n/librepcb_sk.qm
+%%DATADIR%%/i18n/librepcb_tr.qm
+%%DATADIR%%/i18n/librepcb_uk_UA.qm
+%%DATADIR%%/i18n/librepcb_zh_CN.qm
+%%DATADIR%%/i18n/librepcb_zh_TW.qm
 %%DATADIR%%/library/default_image.png
 %%DATADIR%%/library/gitattributes_template
 %%DATADIR%%/library/gitignore_template