summaryrefslogblamecommitdiff
path: root/www/grail/Makefile
blob: 713b623e07086b39a61c4720a6e33b5a1eda2a1b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                 
                                                          
 
           

 
                     
                   
                 
                          

                                          
                    
 
                                 
                                                                         
 

                                                                                    
                                

                          
 
                    



                                                                                             
 
         
                                                                                          
 
           
                                                
                                                                        
                                                                            

                                                                        
                                                   
                                                                        
                                                                            

                                                                        
                                                   

                                                                            
                                   

                                                                  

                      
# Ports collection Makefile for:	Grail
# Date created:				1/11/1999
# Whom:					nectar@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	grail
PORTVERSION=	0.6
PORTREVISION=	2
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=grail
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An extensible Internet browser written entirely in Python

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

BROKEN=		Broken pkg-plist
EXPIRATION_DATE=2005-02-18
DEPRECATED=	${BROKEN}

USE_PYTHON=	-2.2
GRAILSUBDIR=	share/grail
GRAILDIR=	${PREFIX}/${GRAILSUBDIR}
DIRS_CMD=	${SED} -e '/^@dirrm/bok' -e 'D' -e ':ok' -e 's,@dirrm ,,' < ${PLIST}
FILES_CMD=	${SED} -e '/^share\//bok' -e 'D' -e ':ok' -e 's,${GRAILSUBDIR}/,,' < ${PLIST}

do-build:
	${PYTHON_CMD} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'

do-install:
	@${ECHO_MSG} === Creating directories...
	@for dir in `${DIRS_CMD}`; do                                  \
		${ECHO_MSG} ${PREFIX}/$$dir;                               \
		${MKDIR} ${PREFIX}/$$dir;                              \
	done
	@${ECHO_MSG} === Installing grail files ...
	@for file in `${FILES_CMD}`; do                                \
		${ECHO_MSG} ${GRAILDIR}/$$file;                            \
		${INSTALL_DATA} ${WRKSRC}/$$file ${GRAILDIR}/$$file;   \
	done
	@${ECHO_MSG} === Installing grail script...
	@${SED} -e 's,%%GRAILDIR%%,${GRAILDIR},g' \
		-e 's,%%PYTHON_CMD%%,${PYTHON_CMD},g' <${FILESDIR}/grail > \
		${WRKDIR}/grail.tmp
	@${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
	@${RM} ${WRKDIR}/grail.tmp

.include <bsd.port.mk>