mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
755f1591fb
Provides the opposite of the 'tied' function. Say you have %hash that is tied to $object. Then, it is relatively simple to get $object from %hash simply by saying $object = tied %hash; But, how does one go the other way? Simple, with Tie::Restore tie %hash, 'Tie::Restore', $object; Works for any kind of tie. (scalar, array, hash, filehandle)
30 lines
600 B
Makefile
30 lines
600 B
Makefile
# New ports collection makefile for: p5-Tie-Restore
|
|
# Date created: April 19th 2006
|
|
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Tie-Restore
|
|
PORTVERSION= 0.11
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= Tie
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
|
COMMENT= Restores ties to an existing object
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= Tie::Restore.3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
post-patch:
|
|
${PERL} -pi -e 's/^our (\S+)/use vars qw($$1); $$1/' ${WRKSRC}/Restore.pm
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|