Sunday, September 13, 2026

Re: maintainer fix: net/abaddon, properly install desktop app icon

On Sat, 12 Sep 2026 05:02:23 +0200, izzy Meyer <izder456@disroot.org> wrote: > > [1 <text/plain; US-ASCII (7bit)>] > Hello ports@ > > Upstream's CMakeLists.txt installs the icon in quite a weird place. By > default, gtk-update-icon-cache won't pick it up. > > So, patch that file to change the icon to install to a more typical > place. > > While here, don't install the flatpak specific metainfo file that's not > relevant to OpenBSD. > Just tried, and it fails as: Error: /usr/ports/pobj/abaddon-0.2.4/fake-amd64/usr/local/share/icons/hicolor/scalable/apps/io.github.uowuo.abaddon.svg does not exist pkg_create: can't continue > -- > iz (she/her) > > > I say mundane things > > so the uninteresting > > just might get noticed. > > izder456 (dot) neocities (dot) org > [2 abaddon-icon-fix.diff <text/x-patch (7bit)>] > diff --git a/net/abaddon/Makefile b/net/abaddon/Makefile > index 98d337126..33bd87e7e 100755 > --- a/net/abaddon/Makefile > +++ b/net/abaddon/Makefile > @@ -2,6 +2,7 @@ COMMENT = alternative & light Discord client > > V = 0.2.4 > PKGNAME = abaddon-${V} > +REVISION = 0 > > DIST_TUPLE += github uowuo abaddon v${V} . > DIST_TUPLE += github machinezone IXWebSocket \ > diff --git a/net/abaddon/patches/patch-CMakeLists.txt b/net/abaddon/patches/patch-CMakeLists.txt > new file mode 100644 > index 000000000..0e3b9cd83 > --- /dev/null > +++ b/net/abaddon/patches/patch-CMakeLists.txt > @@ -0,0 +1,16 @@ > +--- CMakeLists.txt.orig 2026-03-31 15:49:05 UTC > ++++ CMakeLists.txt > +@@ -279,8 +279,11 @@ if (NOT (APPLE OR WIN32)) > + if (NOT (APPLE OR WIN32)) > + install(FILES > + ${CMAKE_CURRENT_SOURCE_DIR}/res/desktop/io.github.uowuo.abaddon.desktop > +- ${CMAKE_CURRENT_SOURCE_DIR}/res/desktop/io.github.uowuo.abaddon.metainfo.xml > +- ${CMAKE_CURRENT_SOURCE_DIR}/res/desktop/icon.svg > + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications > ++ ) > ++ install(FILES > ++ ${CMAKE_CURRENT_SOURCE_DIR}/res/desktop/icon.svg > ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps > ++ RENAME io.github.uowuo.abaddon.svg > + ) > + endif() > diff --git a/net/abaddon/pkg/PLIST b/net/abaddon/pkg/PLIST > index 62799a98b..5aa0058d2 100644 > --- a/net/abaddon/pkg/PLIST > +++ b/net/abaddon/pkg/PLIST > @@ -81,7 +81,7 @@ share/abaddon/res/twitter.png > share/abaddon/res/typing_indicator.gif > share/abaddon/res/xbox.png > share/abaddon/res/youtube.png > -share/applications/icon.svg > share/applications/io.github.uowuo.abaddon.desktop > -share/applications/io.github.uowuo.abaddon.metainfo.xml > share/doc/pkg-readmes/${PKGSTEM} > +share/icons/hicolor/scalable/apps/io.github.uowuo.abaddon.svg > +@tag gtk-update-icon-cache %D/share/icons/hicolor -- wbr, Kirill

No comments:

Post a Comment