Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2006 21:51:01 +0100
From:      Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        thierry@FreeBSD.org
Subject:   ports/106573: [PATCH] textproc/aspell: strange version numbers for aspell dictionaries
Message-ID:  <457c7338.0c1c322d.216b.57cf@mx.google.com>
Resent-Message-ID: <200612102100.kBAL0FWf032305@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106573
>Category:       ports
>Synopsis:       [PATCH] textproc/aspell: strange version numbers for aspell dictionaries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 10 21:00:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcin Wisnicki
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD ghost.pnet.one.pl 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Mon Nov 13 02:19:14 CET 2006
>Description:
Since version 0.60.4_4 of textproc/aspell, dictionary ports have weird version
numbers, eg:
 pl-aspell-.p.0.51.0,1   <-- this is especially bad because it starts with dot
 iw-aspell-6.h.0.9.0

This is because default PORTVERSION-from-DISTVERSION regexp is not suited for
version numbers used by aspell dicts.

Attached patch defines custom regexp that removes country code from version
number as well as leading version number of aspell(?). With it applied I get
following PKGNAMEs:
 pl-aspell-0.51.0,1
 iw-aspell-0.9.0

Please note that most of the dictionary ports will need epoch bump.

Port maintainer (thierry@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- aspell-0.60.4_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/aspell.orig/Makefile.inc /usr/ports/textproc/aspell/Makefile.inc
--- /usr/ports/textproc/aspell.orig/Makefile.inc	Sun Dec 10 21:22:41 2006
+++ /usr/ports/textproc/aspell/Makefile.inc	Sun Dec 10 21:10:14 2006
@@ -4,6 +4,7 @@
 MASTER_SITES?=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR?=	aspell/dict/${DICT}
 DISTNAME?=	aspell${DISTVERSION}
+PORTVERSION?=	${DISTVERSION:L:C/[0-9]?-?[a-z]+-//g:C/([0-9])([a-z])/\1.\2/g:C/:(.)/\1/g:C/[^a-z0-9+]+/./g}
 
 .if ${PORTNAME} == "en-aspell" || defined(WITHOUT_DICTEN)
 LIB_DEPENDS=	aspell:${PORTSDIR}/textproc/aspell-without-dicten
--- aspell-0.60.4_4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457c7338.0c1c322d.216b.57cf>