DESCR

Guile-pg is a Guile module providing access and allowing updates to
PostgreSQL databases from Guile scripts. Guile is the GNU interpreter
for the Scheme language and PostgreSQL is a free relational database
management system. This package is for Guile 1.6.x.

Makefile

# $NetBSD: Makefile,v 1.42 2010/03/19 11:26:57 gdt Exp $
#

DISTNAME= guile-pg-0.39
CATEGORIES= databases
MASTER_SITES= http://www.gnuvola.org/software/guile-pg/

MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.gnuvola.org/software/guile-pg/
COMMENT= PostgreSQL interface for Guile
LICENSE= gnu-gpl-v3

PKG_DESTDIR_SUPPORT= user-destdir

USE_LIBTOOL= YES
USE_TOOLS+= gmake
GNU_CONFIGURE= YES
INFO_FILES= YES

TEST_TARGET= check

# There are several versions of guile; the relevant ones for this
# module are 1.6.x, which is the old FSF version, and ttn-1.4,
# which is a forked version of 1.4 by Thien-Thi Nguyen, the maintainer
# of guile-pg. fsf-1.4 is considered obsolete by nearly everyone.

# In 1.6 (but not fsf-1.4 or ttn-1.4), binary modules are deprecated.
# guile-pg uses binary modules, and places them and scheme code in
# $GUILE_LIBSITE, which is searched by ttn-1.4, but not by 1.6. The
# simplest nonproblematic solution is to symlink the installed code to
# where 1.6 expects it. We could patch guile-pg to install in 1.6's
# preferred location ${PREFIX}/share/guile/site, but there is a shared
# library which of course cannot go in share.

# In 1.8, binary modules have been removed. Support for guile-pg to
# use 1.8-style modules has not yet been written.

SITE=${PREFIX}/guile/1.6/share/guile/site

# guile should make the dir, but if not
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${SITE}
cd ${DESTDIR}${SITE} && ${LN} -sf ../../../../../lib/guile/site/database .

.include "../../lang/guile16/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.9 2009/06/14 17:43:16 joerg Exp $
info/guile-pg.info
lib/guile/site/database/libpostgres.la
lib/guile/site/database/postgres-col-defs.scm
lib/guile/site/database/postgres-gxrepl.scm
lib/guile/site/database/postgres-meta.scm
lib/guile/site/database/postgres-qcons.scm
lib/guile/site/database/postgres-resdisp.scm
lib/guile/site/database/postgres-resx.scm
lib/guile/site/database/postgres-table.scm
lib/guile/site/database/postgres-types.scm
lib/guile/site/database/postgres.la
guile/1.6/share/guile/site/database

distinfo

$NetBSD: distinfo,v 1.10 2010/03/19 11:26:57 gdt Exp $

SHA1 (guile-pg-0.39.tar.gz) = 3ac23784b09bd95d91e322881f15a888d253fac5
RMD160 (guile-pg-0.39.tar.gz) = b5b83f8b8d8fa0020ac09b1cfb9b59caef451267
Size (guile-pg-0.39.tar.gz) = 644189 bytes