Skip to content

Commit

Permalink
irc/hexchat: Some fixes to port
Browse files Browse the repository at this point in the history
- Use upstream release archive as recommended by Porters Handbook
  (USE_GITHUB section)
- Define gdkpixbuf2 dependency (reported by Poudriere)
- Adjust SHEBANG_FILES to remove the need to define BINARY_ALIAS
- Remove INSTALL_TARGET
- Define INSTALLS_ICONS (reported by Portlint)
- Remove unnecessary LIBS variable

PR:		261922
Reviewed by:	pkubaj (maintainer)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Feb 13, 2022
1 parent 782745a commit 6a7cf96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
24 changes: 10 additions & 14 deletions irc/hexchat/Makefile
@@ -1,9 +1,9 @@
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>

PORTNAME= hexchat
PORTVERSION= 2.16.1
DISTVERSIONPREFIX= v
DISTVERSION= 2.16.1
CATEGORIES= irc gnome
MASTER_SITES= https://dl.hexchat.net/hexchat/

MAINTAINER= pkubaj@FreeBSD.org
COMMENT= IRC chat program with GTK and Text Frontend
Expand All @@ -21,16 +21,18 @@ RUN_DEPENDS= ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:misc/iso-codes

USES= compiler:c++11-lang cpe desktop-file-utils gettext-tools gnome \
libtool localbase meson ninja pkgconfig python:3.5+ shebangfix \
ssl xorg
ssl tar:xz xorg
CPE_VENDOR= ${PORTNAME}_project
USE_GNOME= cairo gtk20 intltool libxml2
SHEBANG_FILES= meson_post_install.py \
plugins/perl/generate_header.py \
plugins/python/generate_plugin.py \
src/common/make-te.py
USE_GNOME= cairo gdkpixbuf2 gtk20 intltool libxml2
USE_XORG= x11
USE_GITHUB= yes

MESON_ARGS= -Dtls=enabled -Dgtk-frontend=true -Dwith-python=python-${PYTHON_VER}
INSTALL_TARGET= install-strip
INSTALLS_ICONS=yes

LIBS+= -lX11
MESON_ARGS= -Dtls=enabled -Dgtk-frontend=true -Dwith-python=python-${PYTHON_VER}

SUB_FILES= pkg-message

Expand Down Expand Up @@ -66,12 +68,6 @@ PERL_USES= perl5
TEXTFE_MESON_TRUE= text-frontend
SYSINFO_MESON_TRUE= with-sysinfo

BINARY_ALIAS= python3=${PYTHON_CMD}

SHEBANG_FILES= meson_post_install.py \
plugins/perl/generate_header.py \
src/common/make-te.py

post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%PERL_VER%%|${PERL_VER}|g' \
Expand Down
6 changes: 3 additions & 3 deletions irc/hexchat/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1644698557
SHA256 (hexchat-hexchat-v2.16.1_GH0.tar.gz) = f15bc487312a96a902e042e8f197a8494a29bcf4a00bbfd276a5e8154263bfe5
SIZE (hexchat-hexchat-v2.16.1_GH0.tar.gz) = 2770317
TIMESTAMP = 1644739445
SHA256 (hexchat-2.16.1.tar.xz) = a7e497da71df419daf9855582d51c723a2611de25d5e97b5efc33fe78da5c4c7
SIZE (hexchat-2.16.1.tar.xz) = 1349536

0 comments on commit 6a7cf96

Please sign in to comment.