diff --git a/deskutils/gnome-shell-extension-dashtopanel/Makefile b/deskutils/gnome-shell-extension-dashtopanel/Makefile index 38f3bdfb08c9..5f1f72704d80 100644 --- a/deskutils/gnome-shell-extension-dashtopanel/Makefile +++ b/deskutils/gnome-shell-extension-dashtopanel/Makefile @@ -1,27 +1,44 @@ PORTNAME= gnome-shell-extension-dashtopanel -PORTVERSION= v46 -CATEGORIES= deskutils +DISTVERSIONPREFIX= v +DISTVERSION= 70 +CATEGORIES= deskutils gnome +DIST_SUBDIR= gnome -MAINTAINER= Alexander88207@protonmail.com +MAINTAINER= gnome@FreeBSD.org COMMENT= Icon taskbar for the Gnome Shell WWW= https://github.com/home-sweet-gnome/dash-to-panel LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= git:devel/git \ - gsed:textproc/gsed \ - gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas +BUILD_DEPENDS= gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas +RUN_DEPENDS= gnome-shell>=47.0:x11/gnome-shell -USES= gettext gmake +USES= gettext-tools gmake gnome +USE_GNOME= glib20 intltool:build USE_GITHUB= yes GH_ACCOUNT= home-sweet-gnome GH_PROJECT= dash-to-panel -BINARY_ALIAS= sed=gsed +UUID_EXTENSION= dash-to-panel@jderose9.github.com + +SUB_FILES= pkg-message +SUB_LIST= UUID=${UUID_EXTENSION} + +GLIB_SCHEMAS= org.gnome.shell.extensions.dash-to-panel.gschema.xml post-patch: - @${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|g' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|: 9999|: ${DISTVERSION}|' \ + ${WRKSRC}/metadata.json + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/Makefile + +pre-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/glib-2.0/schemas + +post-install: + ${INSTALL_DATA} ${WRKSRC}/schemas/*.xml \ + ${STAGEDIR}${PREFIX}/share/glib-2.0/schemas .include diff --git a/deskutils/gnome-shell-extension-dashtopanel/distinfo b/deskutils/gnome-shell-extension-dashtopanel/distinfo index 162260d542d6..1756a3ddd95f 100644 --- a/deskutils/gnome-shell-extension-dashtopanel/distinfo +++ b/deskutils/gnome-shell-extension-dashtopanel/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1650105595 -SHA256 (home-sweet-gnome-dash-to-panel-v46_GH0.tar.gz) = 181f455b74889795e4896e0f92de7391ac5ce9b13ae24cbd2430644b921428d3 -SIZE (home-sweet-gnome-dash-to-panel-v46_GH0.tar.gz) = 21156093 +TIMESTAMP = 1757775023 +SHA256 (gnome/home-sweet-gnome-dash-to-panel-v70_GH0.tar.gz) = 60ce7025417655b6dbdeaaf26eb351cbd4341a961fc76d79b2810279e3a4b5a2 +SIZE (gnome/home-sweet-gnome-dash-to-panel-v70_GH0.tar.gz) = 21268362 diff --git a/deskutils/gnome-shell-extension-dashtopanel/files/patch-Makefile b/deskutils/gnome-shell-extension-dashtopanel/files/patch-Makefile new file mode 100644 index 000000000000..c96a816d67a2 --- /dev/null +++ b/deskutils/gnome-shell-extension-dashtopanel/files/patch-Makefile @@ -0,0 +1,81 @@ +--- Makefile.orig 2025-09-05 17:23:15 UTC ++++ Makefile +@@ -7,39 +7,15 @@ MSGSRC = $(wildcard po/*.po) + + TOLOCALIZE = src/extension.js src/prefs.js src/appIcons.js src/taskbar.js + MSGSRC = $(wildcard po/*.po) +-ifeq ($(strip $(DESTDIR)),) +- INSTALLTYPE = local +- INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions +-else +- INSTALLTYPE = system +- INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions +- SHARE_PREFIX = $(DESTDIR)/usr/share +-endif ++INSTALLBASE = $(DESTDIR)%%LOCALBASE%%/share/gnome-shell/extensions + INSTALLNAME = dash-to-panel@jderose9.github.com + +-# The command line passed variable VERSION is used to set the version string +-# in the metadata and in the generated zip-file. If no VERSION is passed, the +-# version is pulled from the latest git tag and the current commit SHA1 is +-# added to the metadata +-ifdef VERSION +- ifdef TARGET +- FILESUFFIX = _v$(VERSION)_$(TARGET) +- else +- FILESUFFIX = _v$(VERSION) +- endif +-else +- LATEST_TAG = $(shell git describe --match "v[0-9]*" --abbrev=0 --tags HEAD) +- VERSION = $(LATEST_TAG:v%=%) +- COMMIT = $(shell git rev-parse HEAD) +- FILESUFFIX = +-endif +- + all: extension + + clean: + rm -f ./schemas/gschemas.compiled + +-extension: ./schemas/gschemas.compiled $(MSGSRC:.po=.mo) ++extension: $(MSGSRC:.po=.mo) + + ./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml + glib-compile-schemas ./schemas/ +@@ -69,7 +45,6 @@ install-local: _build + install: install-local + + install-local: _build +- rm -rf $(INSTALLBASE)/$(INSTALLNAME) + mkdir -p $(INSTALLBASE)/$(INSTALLNAME) + cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/ + ifeq ($(INSTALLTYPE),system) +@@ -88,17 +63,13 @@ _build: all + -rm -fR _build + + _build: all +- -rm -fR ./_build + mkdir -p _build +- cp $(MODULES) _build ++ cp $(MODULES) _build/ + mkdir -p _build/ui +- cp $(UI_MODULES) _build/ui ++ cp $(UI_MODULES) _build/ui/ + + mkdir -p _build/img + cd img ; cp $(IMAGES) ../_build/img/ +- mkdir -p _build/schemas +- cp schemas/*.xml _build/schemas/ +- cp schemas/gschemas.compiled _build/schemas/ + mkdir -p _build/locale + for l in $(MSGSRC:.po=.mo) ; do \ + lf=_build/locale/`basename $$l .mo`; \ +@@ -106,8 +77,3 @@ _build: all + mkdir -p $$lf/LC_MESSAGES; \ + cp $$l $$lf/LC_MESSAGES/dash-to-panel.mo; \ + done; +-ifneq ($(and $(COMMIT),$(VERSION)),) +- sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION),\n"commit": "$(COMMIT)"/' _build/metadata.json; +-else ifneq ($(VERSION),) +- sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION)/' _build/metadata.json; +-endif diff --git a/deskutils/gnome-shell-extension-dashtopanel/files/pkg-message.in b/deskutils/gnome-shell-extension-dashtopanel/files/pkg-message.in new file mode 100644 index 000000000000..2e9eff6a48b7 --- /dev/null +++ b/deskutils/gnome-shell-extension-dashtopanel/files/pkg-message.in @@ -0,0 +1,18 @@ +[ +{ type: install + message: <