Skip to content

Commit

Permalink
net-p2p/microdc2: unbreak the build and undeprecate this useful port
Browse files Browse the repository at this point in the history
- Hardcode results of libxml2 version checks so it won't break again
- Do not inhibit manpage installation, but adjust translation's path
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Oct 30, 2023
1 parent 3e059e3 commit 668e308
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
11 changes: 6 additions & 5 deletions net-p2p/microdc2/Makefile
Expand Up @@ -2,18 +2,14 @@ PORTNAME= microdc2
PORTVERSION= 0.15.6
PORTREVISION= 10
CATEGORIES= net-p2p
MASTER_SITES= http://corsair626.no-ip.org/microdc/
MASTER_SITES= http://corsair626.no-ip.org/microdc/ LOCAL/danfe

MAINTAINER= pankov_p@mail.ru
COMMENT= Command-line based Direct Connect client
WWW= http://corsair626.no-ip.org/microdc/

LICENSE= GPLv2

DEPRECATED= BROKEN for more than an year
EXPIRATION_DATE= 2023-11-30
BROKEN= does not build: undefined symbol: main_to_utf8_string

CONFLICTS= tthsum

USES= gnome iconv readline
Expand All @@ -26,4 +22,9 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_OFF= --disable-nls

post-stage:
@${MKDIR} ${STAGEDIR}${MANPREFIX}/man/pl/man1
cd ${STAGEDIR}${MANPREFIX}/man && \
${MV} man1/microdc.pl.1 pl/man1/microdc.1

.include <bsd.port.mk>
14 changes: 11 additions & 3 deletions net-p2p/microdc2/files/patch-configure
@@ -1,11 +1,19 @@
--- configure.orig 2006-12-25 02:45:07 +0800
--- configure.orig 2006-12-24 18:45:07 UTC
+++ configure
@@ -21508,7 +21508,7 @@ cat >>confdefs.h <<\_ACEOF
@@ -21501,14 +21501,14 @@ fi

if test -n "$XML_CONFIG" && test -n "$TR"; then
LIBXML2_VERSION=`$XML_CONFIG --version | $TR -d "."`
- if test $LIBXML2_VERSION -eq 2616; then
+ if false; then

cat >>confdefs.h <<\_ACEOF
#define XML_SAVE_FORMAT 1
_ACEOF

fi
- if test $LIBXML2_VERSION -ge 2616; then
+ if test $LIBXML2_VERSION \> 2615; then
+ if true; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBXML2 1
_ACEOF
Expand Down
11 changes: 0 additions & 11 deletions net-p2p/microdc2/files/patch-no-man

This file was deleted.

2 changes: 2 additions & 0 deletions net-p2p/microdc2/pkg-plist
@@ -1,4 +1,6 @@
bin/microdc2
bin/tthsum
man/man1/microdc.1.gz
man/pl/man1/microdc.1.gz
%%NLS%%share/locale/pl/LC_MESSAGES/microdc2.mo
%%NLS%%share/locale/sv/LC_MESSAGES/microdc2.mo

0 comments on commit 668e308

Please sign in to comment.