also store PREFIX, which allows for useful statistics

This commit is contained in:
espie 2013-06-21 10:48:38 +00:00
parent 4ab9c5bdaf
commit 247caf9db6
5 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.50 2013/03/31 09:43:13 espie Exp $
# $OpenBSD: Makefile,v 1.51 2013/06/21 10:48:38 espie Exp $
CATEGORIES = databases
V = 2.7
V = 2.8
DISTNAME = sqlports-$V
DISTFILES =
COMMENT = sqlite database of ports

View File

@ -1,4 +1,4 @@
# $OpenBSD: Info.pm,v 1.8 2013/03/31 09:43:13 espie Exp $
# $OpenBSD: Info.pm,v 1.9 2013/06/21 10:48:38 espie Exp $
#
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
#
@ -73,6 +73,7 @@ our $vars = {
PERMIT_PACKAGE_FTP=> 'YesKeyVar',
PKGNAME => 'AnyVar',
PKGSPEC => 'AnyVar',
PREFIX => 'PrefixKeyVar',
PKG_ARCH => 'ArchKeyVar',
PSEUDO_FLAVOR => 'AnyVar',
PSEUDO_FLAVORS => 'PseudoFlavorsVar',

View File

@ -1,4 +1,4 @@
# $OpenBSD: Var.pm,v 1.19 2013/03/31 09:43:13 espie Exp $
# $OpenBSD: Var.pm,v 1.20 2013/06/21 10:48:38 espie Exp $
#
# Copyright (c) 2006-2010 Marc Espie <espie@openbsd.org>
#
@ -128,6 +128,10 @@ package ArchKeyVar;
our @ISA = qw(KeyVar);
sub keyword_table() { 'Arch' }
package PrefixKeyVar;
our @ISA = qw(KeyVar);
sub keyword_table() { 'Prefix' }
package OptKeyVar;
our @ISA = qw(KeyVar);
sub columntype() { 'OptValueColumn' }

View File

@ -39,6 +39,7 @@ stored in specialized tables, e.g.,:
PKGNAME
PKGSPEC
PKG_ARCH
PREFIX
PSEUDO_FLAVOR
PSEUDO_FLAVORS
TEST_IS_INTERACTIVE
@ -111,6 +112,7 @@ MAINTAINER -> EMAIL
CATEGORIES -> CATEGORYKEYS
CONFIGURE -> CONFIGURE_KEYS
MODULES -> MODULEKEYS
PREFIX -> PREFIX
WANTLIB.VALUE, SHARED_LIBS.LIBNAME -> LIBRARY
PERMIT_*, SEPARATE_BUILD -> KEYWORDS2
FLAVORS, PSEUDO_FLAVORS -> KEYWORDS

View File

@ -34,6 +34,7 @@ holds all the information retrieved through various variables, e.g.,:
PKGNAME
PKGSPEC
PKG_ARCH
PREFIX
PSEUDO_FLAVOR
PSEUDO_FLAVORS
TEST_IS_INTERACTIVE