# $Id: Portfile 170 2009-07-14 10:09:36Z tatyana $

PortSystem		1.0
name			m17n-db
version		1.5.3
categories		devel database textproc
maintainers		majuterus@gmail.com
description		sub-part of the m17n library (m17n-lib)
long_description	${description}
homepage		http://www.m17n.org/m17n-lib-en/
platforms		darwin
depends_lib 		port:gettext
set glibc_ver		2.3.6
set glibc_suffix 	.tar.bz2
set charmaps_dir 	localedata/charmaps
master_sites    http://www.m17n.org/m17n-lib-download/:main \
 		http://ftp.gnu.org/gnu/glibc/:glibc
distfiles		${distname}${extract.suffix}:main \
			glibc-${glibc_ver}${glibc_suffix}:glibc 

checksums	${distname}${extract.suffix} \
			md5 0fdf4582389bb8de75de88caffdd0776 \
			sha1 5d28beda0bb276f33ab0dc360b9168df112986a1 \
		glibc-${glibc_ver}${glibc_suffix} \
			md5 bfdce99f82d6dbcb64b7f11c05d6bc96 \
			sha1 82d0487419f1bdbf2dee439c344e89d6af47e558
extract.only 	${distname}${extract.suffix}
post-extract 	{system "tar xvfj \
			${distpath}/glibc-${glibc_ver}${glibc_suffix} \
			-C ${worksrcpath} \
			glibc-${glibc_ver}/${charmaps_dir}" }
configure.args	--mandir=${prefix}/share/man \
			--with-charmaps=${worksrcpath}/glibc-${glibc_ver}/${charmaps_dir}
