git: 16ed958f9da7 - main - editors/leafpad: Fix plist and some minor changes

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Tue, 29 Aug 2023 18:19:29 UTC
The branch main has been updated by diizzy:

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

commit 16ed958f9da7b718f3538424f32a98b27f87af18
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-08-29 17:05:33 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-08-29 18:18:39 +0000

    editors/leafpad: Fix plist and some minor changes
    
    * Fix plist
    * Use localbase:ldflags helper
    * Remove unneeded import of bsd.port.options.mk
    
    Reported by:    poudriere
    Approved by:    portmgr (blanket)
---
 editors/leafpad/Makefile  | 8 +++-----
 editors/leafpad/pkg-plist | 8 ++++++++
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/editors/leafpad/Makefile b/editors/leafpad/Makefile
index 47f4a3edbdc5..4545dbe98fbd 100644
--- a/editors/leafpad/Makefile
+++ b/editors/leafpad/Makefile
@@ -14,19 +14,17 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libharfbuzz.so:print/harfbuzz
 
-USES=		desktop-file-utils gettext gmake gnome pkgconfig
+USES=		desktop-file-utils gettext gmake gnome localbase:ldflags \
+		pkgconfig
 USE_GNOME=	cairo gdkpixbuf2 gtk20 intlhack
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-chooser
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-lpthread -L${LOCALBASE}/lib
+LDFLAGS+=	-lpthread
 
 PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL README
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
 post-extract:
 	@${CHMOD} a+x ${WRKSRC}/install-sh
 
diff --git a/editors/leafpad/pkg-plist b/editors/leafpad/pkg-plist
index 90b8582356b6..22c5ebfb87ef 100644
--- a/editors/leafpad/pkg-plist
+++ b/editors/leafpad/pkg-plist
@@ -1,10 +1,12 @@
 bin/leafpad
+man/man1/leafpad.1.gz
 share/applications/leafpad.desktop
 share/icons/hicolor/16x16/apps/leafpad.png
 share/icons/hicolor/22x22/apps/leafpad.png
 share/icons/hicolor/24x24/apps/leafpad.png
 share/icons/hicolor/32x32/apps/leafpad.png
 share/icons/hicolor/scalable/apps/leafpad.svg
+share/locale/be/LC_MESSAGES/leafpad.mo
 share/locale/bg/LC_MESSAGES/leafpad.mo
 share/locale/br/LC_MESSAGES/leafpad.mo
 share/locale/ca/LC_MESSAGES/leafpad.mo
@@ -17,16 +19,20 @@ share/locale/es/LC_MESSAGES/leafpad.mo
 share/locale/eu/LC_MESSAGES/leafpad.mo
 share/locale/fi/LC_MESSAGES/leafpad.mo
 share/locale/fr/LC_MESSAGES/leafpad.mo
+share/locale/fur/LC_MESSAGES/leafpad.mo
 share/locale/ga/LC_MESSAGES/leafpad.mo
 share/locale/gl/LC_MESSAGES/leafpad.mo
 share/locale/he/LC_MESSAGES/leafpad.mo
+share/locale/hr/LC_MESSAGES/leafpad.mo
 share/locale/hu/LC_MESSAGES/leafpad.mo
 share/locale/id/LC_MESSAGES/leafpad.mo
 share/locale/it/LC_MESSAGES/leafpad.mo
 share/locale/ja/LC_MESSAGES/leafpad.mo
 share/locale/ko/LC_MESSAGES/leafpad.mo
+share/locale/ky/LC_MESSAGES/leafpad.mo
 share/locale/lt/LC_MESSAGES/leafpad.mo
 share/locale/lv/LC_MESSAGES/leafpad.mo
+share/locale/nb/LC_MESSAGES/leafpad.mo
 share/locale/nl/LC_MESSAGES/leafpad.mo
 share/locale/nn/LC_MESSAGES/leafpad.mo
 share/locale/pl/LC_MESSAGES/leafpad.mo
@@ -35,9 +41,11 @@ share/locale/pt_BR/LC_MESSAGES/leafpad.mo
 share/locale/ru/LC_MESSAGES/leafpad.mo
 share/locale/sk/LC_MESSAGES/leafpad.mo
 share/locale/sl/LC_MESSAGES/leafpad.mo
+share/locale/sq/LC_MESSAGES/leafpad.mo
 share/locale/sr/LC_MESSAGES/leafpad.mo
 share/locale/sv/LC_MESSAGES/leafpad.mo
 share/locale/ta/LC_MESSAGES/leafpad.mo
+share/locale/th/LC_MESSAGES/leafpad.mo
 share/locale/tr/LC_MESSAGES/leafpad.mo
 share/locale/uk/LC_MESSAGES/leafpad.mo
 share/locale/vi/LC_MESSAGES/leafpad.mo