blob: 1b7d9dae23df68756f506ec1a6ad3d542c2e58c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= dooble
DISTVERSION= 2024.11.17
CATEGORIES= www
MAINTAINER= eric@camachat.org
COMMENT= Dooble Web Browser
WWW= https://textbrowser.github.io/dooble/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++17-lang desktop-file-utils gl gmake qmake qt:6 ssl \
tar xorg
USE_GITHUB= yes
GH_ACCOUNT= textbrowser
GH_TUPLE= textbrowser:dooble-dictionaries:0f1e715:dictionaries
#textbrowser:dooble:${PORTVERSION}:DEFAULT
USE_GL= opengl
USE_QT= base charts declarative positioning webchannel webengine \
sqldriver-sqlite:run
USE_XORG= xcb
QMAKE_ENV+= DOOBLE_DICTIONARIES_DIRECTORY=${WRKSRC_dictionaries}/Dictionaries
QMAKE_SOURCE_PATH= dooble.pro
QTWEBENGINE_DICTIONARIES= ${QT_DATADIR}/qtwebengine_dictionaries
PLIST_SUB= QTWEBENGINE_DICTIONARIES=${QTWEBENGINE_DICTIONARIES}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Dooble ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/Icons/Logo/dooble.png ${STAGEDIR}${PREFIX}/share/pixmaps/dooble.png
${MKDIR} ${STAGEDIR}${QTWEBENGINE_DICTIONARIES}
${INSTALL_DATA} ${WRKSRC}/qtwebengine_dictionaries/*.bdic ${STAGEDIR}${QTWEBENGINE_DICTIONARIES}
desktop-file-edit \
--remove-category=Web \
--add-category=Network \
--add-category=WebBrowser \
--set-key=Exec --set-value="/usr/bin/env QTWEBENGINE_DICTIONARIES_PATH=${QTWEBENGINE_DICTIONARIES} ${PREFIX}/bin/${PORTNAME}" \
--set-icon=${PREFIX}/share/pixmaps/dooble.png \
${WRKSRC}/Distributions/dooble.desktop
${INSTALL_DATA} ${WRKSRC}/Distributions/dooble.desktop ${STAGEDIR}${PREFIX}/share/applications/dooble.desktop
.include <bsd.port.mk>
|