Commit graph

31 commits

Author SHA1 Message Date
seb
c3372b07b1 Don't be silly! A copyright ? On this ? I must have been stoned. 2006-01-10 00:01:16 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
999f8b6e04 Applied all quoting fixes found by "pkglint --autofix". 2005-12-05 22:07:07 +00:00
jlam
962622ba7d Rename mk/bsd.pkg.install.mk to mk/install/bsd.pkginstall.mk to
consolidate the files for that framework in one directory.
2005-05-11 02:07:37 +00:00
jmmv
af92a2b644 - Move all CHECK_FILES_SKIP definitions to a central place in bsd.pkg.mk.
- Move the previous block of code down in the file so that all used variables
  are defined (specially PKG_SYSCONFDIR).  Fixes a problem noticed by
  kristerw@'s bulk build in comms/minicom.
- Ignore diff's return code, which aborts make in NetBSD 1.6.2.  Also noticed
  by kristerw@'s bulk build.
- Use full paths to do the checks, instead of relative to ${PREFIX}.  Less
  ambiguity.  Matches should be turned into regular expressions that anchor
  to a whole line (tried that, but found some problems).
- Turn CHECK_FILES to NO by default.  As said in the previous point, there
  are still some problems that have to be fixed and minor improvements to
  be done.  And I have no time to fix this ATM.  Yes, this definitely needs
  more testing.  I'm sorry for all the noise.  (But hey!  you should set and
  try this feature locally! ;-)
2005-01-15 10:50:17 +00:00
jmmv
a12ae77f04 Also skip ${INFO_DIR}/dir in the check-files functionality, as this file
is not controlled by any package (so it won't be part of any PLIST).
2005-01-14 18:41:00 +00:00
seb
680703690d Add TNF copyright. 2005-01-13 09:49:06 +00:00
seb
7760a337ee Insure that the install-info we found is not one provided by the gtexinfo
package by comparing its "base path" against LOCALBASE.

This should fix the problem mentioned in PR pkg/20450.
2003-10-07 09:09:56 +00:00
seb
3ea756e459 Remove this unsupported float comparison. How did this worked? I wonder...
Introduce private variables _{MAKEINFO,TEXINFO_REQD}_{MAJOR,MINOR}
holding the major and minor number version numbers of available makeinfo
and of the minimum required version.
Use these to sort out if devel/gtexinfo is needed as dependency.
2003-09-09 09:10:55 +00:00
jlam
841b57441b Merge pkgviews-mk branch into the HEAD by running:
cd pkgsrc/mk
	cvs update -Pd -A
	cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-09-02 06:59:37 +00:00
seb
53b7172739 Remove setting of INSTALL_INFO and MAKEINFO in {MAKE,CONFIGURE}_ENV
from texinfo.mk. Only set them there from tools.mk: this way they are
always set whatever the value of INFO_FILES and USE_MAKEINFO as
texinfo.mk is included only if INFO_FILES is not empty or USE_MAKEINFO is
not "no".

Please note that now with tools.mk install-info and makeinfo usage by a
package build and installation process is always caught by the
overriding scripts in ${TOOLS_DIR}/bin/{install-info,makeinfo} even if
the package does not use the buildlink framework.

Many thanks to Johnny for that!

XXX: I think I'm going to sweep over packages marked with INFO_FILES
and USE_MAKEINFO to remove the need of INSTALL_INFO and MAKEINFO in
environment and thus only relying on the overriding scripts.
This will clear a bit the clutter in {MAKE,CONFIGURE}_ENV.
2003-08-16 23:19:04 +00:00
seb
0d0e9d3ac1 USE_NEW_TEXINFO is now ubiquitous. Remove conditionals on it.
Also remove the older texinfo.mk framework as well as the previous
handling of INFO_FILES, all this is not used anymore.
2003-08-09 10:24:54 +00:00
seb
2fdc2dd1cb Revert previous. USE_MAKEINFO is initialized in bsd.pkg.mk.
The problem jmc encountered in textproc/groff and leading
him to add it here was fixed in groff package itself.
2003-07-31 22:05:38 +00:00
jmc
38347ced5c Need to define USE_MAKEINFO before testing against it 2003-07-31 20:09:41 +00:00
seb
788f48db9a Sync comments with reality (Trilogy, volume 5). 2003-07-31 13:55:24 +00:00
seb
16437cbe4c Make it possible to have a package requiring makeinfo but not install-info.
INFO_FILES is now defined by default to the empty value.
If it is not empty it means that install-info -or a suitable
replacement like pkg_install-info- is required.

USE_MAKEINFO is now defined by default to the 'no' value.
If it has any other value it means that makeinfo is required.
Note that as before simply defining USE_MAKEINFO in a package
Makefile is enough to trigger the use of makeinfo. I.e. it is not
required to be '[yY][eE][sS]'.

As a side effect when using buildlink2 always create install-info and
makeinfo wrappers in ${BUILDLINK_DIR}/bin. This could help
package maintainer to catch spurious/hidden install-info and makeinfo
usage.

Note that for now this nice feature is not really enabled as the relevant
part of bsd.buildlink2.mk is still conditional upon USE_NEW_TEXINFO.
It will really be when USE_NEW_TEXINFO will be removed from pkgsrc.
2003-07-31 13:50:11 +00:00
grant
529668ce7c include bsd.prefs.mk, since we use ${ECHO}. 2003-07-31 08:58:24 +00:00
grant
84205e4308 patch from seb@ to pass --split-size to gtexinfo >= 4.6.
thanks seb :)
2003-07-02 16:07:01 +00:00
seb
7cbf83dab0 Only consider as makeinfo's version the first version number looking word
in `makeinfo --version'.

This is needed for older makeinfo which output thing like:

makeinfo (GNU texinfo 3.12) 1.68
Copyright (C) 1998 Free Software Foundation, Inc.
....

This should fix the problem encountered by Thorsten Frueauf on 1.5.4_ALPHA
(I reproduced it on stock 1.5.3) and reported in private email via
jschauma@.
2003-07-01 14:56:25 +00:00
jschauma
16b6beba8f Introduce a variable called "MAKEINFO_ARGS", which may be used to pass
arguments to makeinfo(1).  This was made necessary by the fact that under
IRIX64 makeinfo(1) does not use a default split-size of 50000, which breaks
our PLISTs.  After feedback from seb@, initialize MAKEINFO_ARGS per default
to _OPSYS_MAKEINFO_ARGS, which is set in defs.<OPSYS>.mk (currently only
for IRIX using 64-bit ABI).
2003-06-29 21:25:49 +00:00
seb
5ab8be8066 Introduce a new framework to handle info files, install-info and
makeinfo commands.

The goal of the new framework is twofold:
        - reduce the number of '@exec' and '@unexec' in PLIST by
using INSTALL/DEINSTALL scripts to handle entries addition/removal
Info directory file.
        - achieve lighter dependencies by avoiding unnecessary run-time
dependency on the gtexinfo package and if needed with the help of the
standalone install-info command provided by the recently imported package
pkgtools/pkg_install-info.

A package must be sightly updated to use this new framework and
must define the variable USE_NEW_TEXINFO. This variable will
be removed from the pkgsrc tree when all package would have been
updated.

For details see section 10.24 of Packages.txt, comments in
mk/{texinfo.mk,buildlink2/bsd.buildlink2.mk} and upcoming mail to
<tech-pkg at netbsd dot org>.
2003-06-19 21:41:13 +00:00
seb
ae6b3e4ee2 TEXINFO_OVERRIDE tweak: '(install-info ' is also a pattern that can be
encountered in Makefile.ins generated by automake.

XXX Hopefully this is going to be the last modification for this
file's avatar.
2003-05-06 23:43:53 +00:00
abs
1c61f9f069 When comparing install-info version, ignore non [0-9.] - treat 4.0b as 4.0 2003-02-13 18:51:55 +00:00
seb
dcdd15e6d0 Search for the system provided install-info in /usr/bin and if needed
in /sbin.

If devel/gtexinfo if not used assume makeinfo is /usr/bin/makeinfo.

Confirmed to work on RedHat 7.3 by abs, thanks!
2003-01-28 20:03:02 +00:00
seb
5b23966cfb white space fix: replace spaces by tabs 2003-01-28 00:08:29 +00:00
wiz
86833e1cf1 Drop some trailing whitespace. 2002-11-14 04:04:13 +00:00
seb
5f53ef53c2 Always append to TEXINFO_SUBST_SED. It was my original intend that
a package creator can add package specifics sed commands to it.

Noted by Masao Uebayashi in private email, Thanks!
2002-03-14 10:35:23 +00:00
seb
ccccb08e18 Typo and whitespace fix. 2002-03-10 18:35:20 +00:00
seb
e9e849cc83 Add default for _GTEXINFO_PREFIX. 2002-03-10 18:34:14 +00:00
seb
3094d59ff2 Do not blindly assign to EVAL_PREFIX! How come I was not bitten by this ?! 2002-03-06 13:06:53 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00