diff --git a/deskutils/Makefile b/deskutils/Makefile index 2ca66469679b..169046af97db 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -1,329 +1,330 @@ COMMENT = Things that used to be on the desktop before computers were invented SUBDIR += R-cran-exams SUBDIR += R-cran-exams2forms SUBDIR += affiche SUBDIR += akonadi-calendar-tools SUBDIR += akonadi-import-wizard SUBDIR += akonadiconsole SUBDIR += akregator SUBDIR += alarm-clock-applet SUBDIR += anydesk SUBDIR += appwrapper SUBDIR += arttime SUBDIR += ausweisapp2 SUBDIR += autocutsel SUBDIR += baobab SUBDIR += belcard SUBDIR += bigyear SUBDIR += bijiben SUBDIR += birdtray SUBDIR += bookworm SUBDIR += budgie-desktop-view SUBDIR += cairo-dock SUBDIR += cairo-dock-plugins SUBDIR += caja-extensions SUBDIR += cal SUBDIR += calcurse SUBDIR += calendar SUBDIR += calendar-data SUBDIR += calibre SUBDIR += calindori SUBDIR += cartotheque SUBDIR += cfiles SUBDIR += chart SUBDIR += cherrytree SUBDIR += clipit SUBDIR += clipmenu SUBDIR += clipnotify SUBDIR += conkyforecast SUBDIR += coolreader SUBDIR += copyq SUBDIR += coregarage SUBDIR += countdown SUBDIR += crengine-ng SUBDIR += crqt-ng SUBDIR += dailystrips SUBDIR += deforaos-notes SUBDIR += deforaos-todo SUBDIR += dfshow SUBDIR += dmenu-wayland SUBDIR += docear SUBDIR += dosage SUBDIR += dstask SUBDIR += easystroke SUBDIR += ekphos SUBDIR += elementary-calendar SUBDIR += elementary-iconbrowser SUBDIR += fasd SUBDIR += fbreader SUBDIR += feathernotes SUBDIR += fet SUBDIR += fff SUBDIR += flameshot SUBDIR += foliate SUBDIR += freebsd-update-notify SUBDIR += freemind SUBDIR += freeplane SUBDIR += fyi SUBDIR += ganttproject SUBDIR += gcal SUBDIR += genius SUBDIR += glabels SUBDIR += gitte SUBDIR += gnome-calendar SUBDIR += gnome-characters SUBDIR += gnome-clocks SUBDIR += gnome-contacts SUBDIR += gnome-dictionary SUBDIR += gnome-font-viewer SUBDIR += gnome-initial-setup SUBDIR += gnome-maps SUBDIR += gnome-photos SUBDIR += gnome-planner SUBDIR += gnome-pomodoro SUBDIR += gnome-screenshot SUBDIR += gnome-shell-extension-coverflow SUBDIR += gnome-shell-extension-dashtodock SUBDIR += gnome-shell-extension-dashtopanel SUBDIR += gnome-shell-extension-hidetopbar SUBDIR += gnome-shell-extension-lockkeys SUBDIR += gnome-shell-extension-manager SUBDIR += gnome-shell-extension-recent-items SUBDIR += gnome-shell-extension-simple-weather SUBDIR += gnome-shell-extra-extensions SUBDIR += gnome-sound-recorder SUBDIR += gnome-todo SUBDIR += gnome-tweaks SUBDIR += gnome-utils SUBDIR += gnome-weather SUBDIR += gnote SUBDIR += gnotime SUBDIR += gnustep-wrapper SUBDIR += gnutrition SUBDIR += go-for-it SUBDIR += goesimage SUBDIR += gpicker SUBDIR += grantlee-editor SUBDIR += grantleetheme SUBDIR += gsimplecal SUBDIR += gtimer SUBDIR += gucharmap SUBDIR += gworkspace SUBDIR += gworkspace-gwmetadata SUBDIR += gxmessage SUBDIR += gxneur SUBDIR += havoc SUBDIR += health SUBDIR += hebcal SUBDIR += helpviewer SUBDIR += hot-babe SUBDIR += howm SUBDIR += hs-arbtt SUBDIR += i3lock SUBDIR += i3status SUBDIR += ical SUBDIR += itinerary SUBDIR += jjclient SUBDIR += jlj SUBDIR += joplin-desktop SUBDIR += jot SUBDIR += just SUBDIR += kaddressbook SUBDIR += kalarm SUBDIR += kanbanapp SUBDIR += kcharselect SUBDIR += kchmviewer SUBDIR += kdeconnect-kde SUBDIR += kdepim SUBDIR += kdepim-addons SUBDIR += kdepim-runtime SUBDIR += keditbookmarks SUBDIR += keep-presence SUBDIR += kf6-kstatusnotifieritem SUBDIR += kfind SUBDIR += kmail SUBDIR += kmail-account-wizard SUBDIR += kodaskanna SUBDIR += komodo SUBDIR += kongress SUBDIR += kontact SUBDIR += korganizer SUBDIR += kronometer SUBDIR += kruler SUBDIR += ktimetracker SUBDIR += kweather SUBDIR += kweathercore SUBDIR += latte-dock SUBDIR += lazycli SUBDIR += libcprime SUBDIR += libkdepim SUBDIR += libportal SUBDIR += libportal-gtk3 SUBDIR += libportal-gtk4 SUBDIR += libportal-qt5 SUBDIR += libportal-qt6 SUBDIR += ljclive SUBDIR += lumina-archiver SUBDIR += lumina-calculator SUBDIR += lumina-fileinfo SUBDIR += lumina-fm SUBDIR += lumina-mediaplayer SUBDIR += lumina-pdf SUBDIR += lumina-photo SUBDIR += lumina-screenshot SUBDIR += lumina-textedit SUBDIR += lxqt-notificationd SUBDIR += maliit-framework SUBDIR += maliit-keyboard SUBDIR += mate-indicator-applet SUBDIR += mate-notification-daemon SUBDIR += mate-utils SUBDIR += mbox-importer SUBDIR += mencal SUBDIR += menumaker SUBDIR += merkuro SUBDIR += meteo SUBDIR += mindforger SUBDIR += moregroupware SUBDIR += mozo SUBDIR += mybee-qt SUBDIR += mytetra SUBDIR += nanonote SUBDIR += nautilus-sendto SUBDIR += nextcloudclient SUBDIR += normcap SUBDIR += note SUBDIR += notekit SUBDIR += notes SUBDIR += noti SUBDIR += notification-daemon SUBDIR += notify-osd SUBDIR += orage SUBDIR += owncloudclient SUBDIR += p5-Data-ICal SUBDIR += p5-Data-ICal-DateTime SUBDIR += p5-Goo SUBDIR += pal SUBDIR += parcellite SUBDIR += peaclock SUBDIR += pet SUBDIR += phpicalendar SUBDIR += pim-data-exporter SUBDIR += pim-sieve-editor SUBDIR += pinot SUBDIR += pipecolor SUBDIR += plan SUBDIR += plans SUBDIR += plasma6-milou SUBDIR += plasma6-sddm-kcm SUBDIR += plasma6-xdg-desktop-portal-kde SUBDIR += plopfolio SUBDIR += podman-desktop SUBDIR += preferences SUBDIR += presage SUBDIR += projectlibre SUBDIR += pueue SUBDIR += puush SUBDIR += py-autokey SUBDIR += py-bugwarrior SUBDIR += py-calendar_cli SUBDIR += py-i3-gnome-pomodoro SUBDIR += py-khal SUBDIR += py-khard SUBDIR += py-mss SUBDIR += py-paperless-ngx SUBDIR += py-py3status SUBDIR += py-pystash SUBDIR += py-qmd SUBDIR += py-send2trash SUBDIR += py-taskw SUBDIR += py-term-background SUBDIR += py-trash-cli SUBDIR += py-vdirsyncer SUBDIR += py-vit SUBDIR += py-vobject SUBDIR += py-vorta SUBDIR += qlipper SUBDIR += qmd SUBDIR += qmediamanager SUBDIR += qownnotes SUBDIR += qtfeedback SUBDIR += readur SUBDIR += recoll SUBDIR += rednotebook SUBDIR += remind SUBDIR += rolo SUBDIR += rubygem-shellplay SUBDIR += rubygem-taskjuggler SUBDIR += rwpspread SUBDIR += semantik SUBDIR += sigi SUBDIR += sigye SUBDIR += simpleagenda SUBDIR += skim SUBDIR += sliderule SUBDIR += solanum SUBDIR += sowon SUBDIR += spacefm SUBDIR += spice-gtk SUBDIR += stirling-pdf SUBDIR += subsurface SUBDIR += synapse SUBDIR += syncthingtray SUBDIR += sysctlview SUBDIR += systempreferences SUBDIR += taskd SUBDIR += tasksh SUBDIR += taskwarrior SUBDIR += taskwarrior-tui SUBDIR += tatuin SUBDIR += teapot SUBDIR += terminal-image-viewer SUBDIR += thinkingrock SUBDIR += thokr SUBDIR += timewarrior SUBDIR += todo SUBDIR += todour SUBDIR += toolboxkit SUBDIR += tpb SUBDIR += treeline SUBDIR += treesheets + SUBDIR += uchmviewer SUBDIR += ultralist SUBDIR += virt-manager SUBDIR += vit SUBDIR += vnote SUBDIR += vym SUBDIR += walld SUBDIR += when SUBDIR += wmpinboard SUBDIR += x026 SUBDIR += xannotate SUBDIR += xcalendar SUBDIR += xcbautolock SUBDIR += xchm SUBDIR += xdg-desktop-portal SUBDIR += xdg-desktop-portal-lxqt SUBDIR += xdg-terminal-exec SUBDIR += xdgctl SUBDIR += xdpi SUBDIR += xfce4-generic-slider SUBDIR += xfce4-notes-plugin SUBDIR += xfce4-notifyd SUBDIR += xfce4-tumbler SUBDIR += xfce4-volumed-pulse SUBDIR += xfce4-xkb-plugin SUBDIR += xmdiary SUBDIR += xneur SUBDIR += xpad SUBDIR += xpad3 SUBDIR += xpostit SUBDIR += xpostitPlus SUBDIR += xwrits SUBDIR += ydotool SUBDIR += zanshin SUBDIR += zim SUBDIR += zk SUBDIR += zorro .include diff --git a/deskutils/uchmviewer/Makefile b/deskutils/uchmviewer/Makefile new file mode 100644 index 000000000000..ab162a06b2a7 --- /dev/null +++ b/deskutils/uchmviewer/Makefile @@ -0,0 +1,32 @@ +PORTNAME= uchmviewer +PORTVERSION= 8.6 +DISTVERSIONPREFIX= v +CATEGORIES= deskutils + +MAINTAINER= makc@FreeBSD.org +COMMENT= Qt based viewer for CHM and EPUB files +WWW= https://github.com/eBookProjects/uChmViewer + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libchm.so:misc/chmlib \ + libzip.so:archivers/libzip + +USES= cmake desktop-file-utils gettext qt:6 +USE_QT= 5compat base webengine + +USE_GITHUB= yes +GH_ACCOUNT= eBookProjects +GH_PROJECT= uChmViewer + +CMAKE_ON= USE_DBUS \ + USE_WEBENGINE + +post-patch: + ${REINPLACE_CMD} '/set(APP_QT_MIN_VERSION/s,5,6,' \ + ${WRKSRC}/CMakeLists.txt + ${REINPLACE_CMD} 's,/usr/bin,${LOCALBASE}/bin,' \ + ${WRKSRC}/src/config.cpp + +.include diff --git a/deskutils/uchmviewer/distinfo b/deskutils/uchmviewer/distinfo new file mode 100644 index 000000000000..54bbc52973c7 --- /dev/null +++ b/deskutils/uchmviewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1781630649 +SHA256 (eBookProjects-uChmViewer-v8.6_GH0.tar.gz) = fb3633adda1d8aa106308cdf8875f64505a674320f52be4b293f3b35a31a7908 +SIZE (eBookProjects-uChmViewer-v8.6_GH0.tar.gz) = 985013 diff --git a/deskutils/uchmviewer/files/patch-packages_CMakeLists.txt b/deskutils/uchmviewer/files/patch-packages_CMakeLists.txt new file mode 100644 index 000000000000..570da840f772 --- /dev/null +++ b/deskutils/uchmviewer/files/patch-packages_CMakeLists.txt @@ -0,0 +1,24 @@ +--- packages/CMakeLists.txt.orig 2026-03-08 12:36:08 UTC ++++ packages/CMakeLists.txt +@@ -1,10 +1,7 @@ cmake_minimum_required(VERSION 3.16) + + cmake_minimum_required(VERSION 3.16) + +-if (CMAKE_SYSTEM_NAME MATCHES "Linux") +- install(FILES freedesktop/uchmviewer.desktop DESTINATION ${APP_DEF_INSTALL_DIR}) +- install(DIRECTORY freedesktop/icons/ DESTINATION ${APP_ICONS_INSTALL_DIR}) +-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND USE_MACOS_BUNDLE) ++if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND USE_MACOS_BUNDLE) + set(PLIST macos/Info.plist) + set(PLIST_OUT ${CMAKE_CURRENT_BINARY_DIR}/${PLIST}) + configure_file(${PLIST}.in ${PLIST_OUT}) +@@ -12,6 +9,9 @@ elseif (&{CMAKE_SYSTEM_NAME} MATCHES "Windows") + install(FILES macos/uchmviewer.icns DESTINATION ${APP_ICONS_INSTALL_DIR}) + elseif (&{CMAKE_SYSTEM_NAME} MATCHES "Windows") + install(FILES uchmviewer.png DESTINATION ${APP_ICONS_INSTALL_DIR}) ++else () ++ install(FILES freedesktop/uchmviewer.desktop DESTINATION ${APP_DEF_INSTALL_DIR}) ++ install(DIRECTORY freedesktop/icons/ DESTINATION ${APP_ICONS_INSTALL_DIR}) + endif () + + diff --git a/deskutils/uchmviewer/pkg-descr b/deskutils/uchmviewer/pkg-descr new file mode 100644 index 000000000000..c381b2140a89 --- /dev/null +++ b/deskutils/uchmviewer/pkg-descr @@ -0,0 +1,9 @@ +uChmViewer is a fork of the KchmViewer with some improvements. uChmViewer is a +chm (MS HTML help file format) and epub viewer, written in C++ using Qt +framework. + +The main advantage of uChmViewer is extended support for non-English +languages. Unlike others, uChmViewer in most cases correctly detects chm file +encoding, correctly shows tables of context of Russian, Korean, Chinese and +Japanese help files. It also correctly searches text in non-English help +files, including Korean, Chinese and Japanese. diff --git a/deskutils/uchmviewer/pkg-plist b/deskutils/uchmviewer/pkg-plist new file mode 100644 index 000000000000..986101f21aa3 --- /dev/null +++ b/deskutils/uchmviewer/pkg-plist @@ -0,0 +1,17 @@ +bin/uchmviewer +share/applications/uchmviewer.desktop +share/icons/hicolor/128x128/apps/uchmviewer.png +share/locale/cs/LC_MESSAGES/uchmviewer.mo +share/locale/de/LC_MESSAGES/uchmviewer.mo +share/locale/fr/LC_MESSAGES/uchmviewer.mo +share/locale/hu/LC_MESSAGES/uchmviewer.mo +share/locale/it/LC_MESSAGES/uchmviewer.mo +share/locale/nl/LC_MESSAGES/uchmviewer.mo +share/locale/pl/LC_MESSAGES/uchmviewer.mo +share/locale/pt_BR/LC_MESSAGES/uchmviewer.mo +share/locale/ru/LC_MESSAGES/uchmviewer.mo +share/locale/sv/LC_MESSAGES/uchmviewer.mo +share/locale/tr/LC_MESSAGES/uchmviewer.mo +share/locale/uk/LC_MESSAGES/uchmviewer.mo +share/locale/zh_CN/LC_MESSAGES/uchmviewer.mo +share/locale/zh_TW/LC_MESSAGES/uchmviewer.mo