Commit graph

5315 commits

Author SHA1 Message Date
jlam
9709330118 Drop support for INFO_DIR, which should now be replaced with PKGINFODIR. 2006-03-30 04:57:45 +00:00
jlam
833aaa4f40 Whitespace changes. 2006-03-30 03:03:52 +00:00
jlam
df10fbdf66 Skip symlinks without emitting warnings during PLIST creation as these
are harmless.
2006-03-30 03:02:40 +00:00
chris
00cec3783b Add and describe gpgme option, mail/sylpheed now passes pkglint. 2006-03-29 22:59:11 +00:00
joerg
88a346cbc7 Add an option (MKSUMMARY) to create pkg_chk index for binary-only updates
during mk/bulk/upload. Disabled by default.
2006-03-28 10:56:52 +00:00
jlam
ffdd852782 Remove an unsed script -- print-la-libnames was replaced with
plist/libtool-expand after the plist module was committed.
2006-03-22 22:51:53 +00:00
jmmv
6bbe74362d Add the pa_IN locale directory, initially used by the iso-codes 0.50
package (coming after the freeze).
2006-03-21 19:35:44 +00:00
jlam
6957d70e23 Strip trailing whitespace. 2006-03-20 23:20:37 +00:00
uebayasi
b79cc5ce5a postgresql81 has moved from wip to pkgsrc. 2006-03-20 14:48:45 +00:00
jlam
78c3fbd8fe Create a new variable EMACS_MODULES that is a list of "standard" elisp
modules that is required by the package.  The allowed modules are
"base" and "leim".  EMACS_USE_LEIM is deprecated and should be replaced
with EMACS_MODULES+=leim.
2006-03-20 05:24:33 +00:00
jlam
29fefe52e3 * Creates a new variable PKGINFODIR (named similarly to PKGMANDIR)
that is a purely user-settable variable to represent the relative
  path under ${PREFIX} where info files are stored and "dir" files
  are managed.  PKGINFODIR defaults to "info".  INFO_DIR still works,
  but will be obsoleted after the 2006Q1 branch.

* Modify GNU_CONFIGURE_INFODIR to only honor ${PKGINFODIR} if the
  package installs directly into ${PREFIX} and not some subdirectory
  under ${PREFIX}.  This fixes packages that don't really honor
  $(infodir) all that well, and also avoids PLIST problems relating
  to directory removal for those packages.

* Since the majority of Emacs Lisp packages use GNU_CONFIGURE, just
  set GNU_CONFIGURE_INFODIR directly to ${EMACS_INFOPREFIX}, which is
  the Emacs-distro-specific location for info files.  Also pass
  EMACS_INFOPREFIX through PLIST_SUBST for PLIST substitution.

* INFO_FILES should be defined if the package installs info files.
  If the info files are not listed in the PLIST, then INFO_FILES
  must list the filenames for the info files installed by the package,
  which are assumed to be located in ${PREFIX}/${PKGINFODIR}.

* The plist module can now better detect info files listed in PLISTs
  and exports a command to the pkginstall module to append info file
  names to the +INFO_FILES scriptlet at install-time.

* The print-PLIST target is updated to properly list info files in
  the auto-generated PLIST.

* The check-files code is updated to skip all "dir" Info database files.
2006-03-20 01:48:57 +00:00
jlam
44b11e928c Modify the INSTALL script to allow for selective unpacking of a scriptlet. 2006-03-19 23:58:14 +00:00
jlam
766f664aef Teach the tools framework about "texi2html". 2006-03-19 23:40:07 +00:00
jdolecek
846e1b7945 ftp.fi.muni.cz mirrors GNU, CPAN and CTAN, add it to the appropriate
MASTER_SITE_* lists as a courtesy for Czech users
2006-03-19 13:12:53 +00:00
jlam
058ac2968b Remove leftover code sections guarded by _USE_PLIST_MODULE which was
mainlined long ago.
2006-03-18 21:40:44 +00:00
jlam
8679fd0ed3 Ensure that we invoke a brand new make when creating the INSTALL/DEINSTALL
and rc.d scripts so that we source the latest makevars.mk file and
get the latest set of cached variables.  This fixes problems where
BUILDLINK_PREFIX.* wasn't being expanded correctly when substituting
into an INSTALL script.
2006-03-17 18:22:30 +00:00
jlam
3a47f58511 Allow INSTALLATION_DIRS to contain absolute paths so long as they being
with ${PREFIX}.  This simplifies re-using variables that contain full
paths.
2006-03-17 08:02:41 +00:00
jlam
ac1b7b84dd Teach the tools framework about "makedepend", supplied by the imake
packages.
2006-03-16 22:31:59 +00:00
jlam
47283bca00 Always run the pkginstall framework targets to generate the
INSTALL/DEINSTALL and rc.d scripts, regardless of whether NO_BUILD is
defined or not.

We do this by renaming the main "build" target to "_build", and creating
a new "build" target that has "_build" and "pkginstall" as dependencies.
This allows the "build" and "install" targets to be consecutive, so
no changes in behavior are visible to the user.

Because the pkginstall targets are no longer run within the protection
of the locks during the build phase, we need to manage locking within
a new "pkginstall" target.
2006-03-15 16:20:11 +00:00
jlam
ce8c6b5c7a Back out previous... it was part of some larger changes that were never
committed and I got ahead of myself.
2006-03-15 14:06:09 +00:00
jlam
d4ca1fbd6b Rototill of how the various template parts of the INSTALL and DEINSTALL
scripts are generated.  The various scriptlets in pkgsrc/mk/install
are now full templates that can be combined to form the INSTALL and
DEINSTALL scripts.  All of the templates have either leading or trailing
blank lines so that when they are concatentated, the full INSTALL and
DEINSTALL scripts will still be easy to read.

All of the generated template sources for the INSTALL and DEINSTALL
scripts are now stored in ${WRKDIR}/.pkginstall for local consistency
and have been renamed so that they are not dot-files.

The "data" for the +* scriptlets are now generated in a separate step
and instead of being appended to the unpacked scriptlet are now appended
to the INSTALL script itself.  When the scriptlets are unpacked, the
corresponding data lines for each scriptlet are pulled out of the
INSTALL script and put into the unpacked scriptlets.  This makes it
easy to append more data lines during the install phase without needing
to regenerate the INSTALL script.
2006-03-15 04:52:57 +00:00
jlam
56082f039b Properly rename "info" to ${INFO_DIR} in any @dirrm statements. Also
add a guard so that we don't re-expand any "info" in ${INFO_DIR} again.
2006-03-14 23:16:01 +00:00
jlam
934c43ebc6 We can always pass --infodir to configure scripts, regardless of whether
or not there are info files to be installed.
2006-03-14 17:24:34 +00:00
jlam
e9045e1673 Teach the plist framework a new variable IGNORE_INFO_DIRS that is a
list of ${PREFIX}-relative paths of directories that do *not* contain
info files.  This allows avoiding the auto info-file-entry munging
that occurs for all PLIST entries that are in directories named "info".
2006-03-14 17:14:47 +00:00
jlam
e7f393b63b Sort _PLIST_AWK_ENV. 2006-03-14 16:54:28 +00:00
jlam
495bdf8ee8 Restructure pattern-actions a bit so that we're not lumping everything
into the last action.  This makes it easier to understand the flow.
2006-03-14 15:32:18 +00:00
tron
da6eed48b7 Sync variable names in comments with recent changes to install framework. 2006-03-14 11:19:57 +00:00
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
heinz
b267575b0d Replaced option "spamassassin-test-net" by generic option "online-tests".
Adapted the single quotation marks in option spamassassin-test-prefork to the
commonly used double quotation marks.
2006-03-13 21:22:33 +00:00
jlam
07b5aff6cb Makefiles that include oss.buildlink3.mk can now check the value of
OSS_TYPE to determine whether or not a native OSS implementation is
present or not.  OSS_TYPE just exports the value of IS_BUILIN.oss, but
exports it early enough where it can be used within a package Makefile,
e.g.:

	.include "../../mk/oss.buildlink3.mk"
	.if ${OSS_TYPE} == "none"
	CONFIGURE_ARGS+=	--without-oss
	.endif

This should fix builds of some packages that include "oss.buildlink3.mk"
on platforms where there is no OSS in the base system, e.g. Mac OS X
and Solaris.
2006-03-13 16:10:15 +00:00
rillig
3ef535342c Added the variable PHASE_MSG, STEP_MSG, WARNING_MSG and ERROR_MSG to
facilitate the generation of consistent-looking progress messages.
2006-03-12 14:55:18 +00:00
uebayasi
303a92842d +zsh-multibyte 2006-03-11 13:22:08 +00:00
uebayasi
9062d05971 Export EMACS_VERSION_MAJOR and EMACS_VERSION_MINOR to packages using emacs.mk. 2006-03-11 06:23:20 +00:00
reed
57f2744103 BUILD_DEPENDS on gettext-tools not gettext for BUILD_USES_MSGFMT. 2006-03-11 04:01:27 +00:00
jlam
5ce2fd1e99 Cosmetic change: reorder some lines locally to make it easier for me
to understand.
2006-03-10 23:36:08 +00:00
jlam
509cd276cf Expose fewer knobs for a user to tweak by making more variables private. 2006-03-10 23:33:57 +00:00
jlam
94bbce9371 Correct the path to the bsd.prefs.mk file and move it to the proper
location in a buildlink3.mk file.
2006-03-10 22:33:24 +00:00
jlam
6f31a709ac Don't define DEINSTALL_FILE or INSTALL_FILE if the corresponding *_SRC
variables are empty.
2006-03-10 22:23:02 +00:00
tonio
5371ea65c7 replace-interpreter should use REPLACE_FILES.${lang} instead of
_REPLACE_FILES.${lang}
2006-03-10 11:02:00 +00:00
wiz
0bba29e2ac Include bsd.prefs.mk before testing ${OPSYS}. 2006-03-10 07:31:32 +00:00
jlam
11d32442f2 Make it safe to include bsd.pkginstall.mk directly in bsd.pkg.mk, and
drop pkginstall.mk, which did the same thing.  Also, rework some of
the targets so that we avoid needing to inspect *_MEMBERS variables
within make -- we defer the check to the shell code invoked by the
targets.

All changes are internal and don't affect existing packages in a
visible way.
2006-03-09 23:31:51 +00:00
jlam
6ad6aef9d4 Replace references to ossaudio.buildlink3.mk with oss.buildlink3.mk.
Remove deprecated ossaudio.buildlink3.mk.
2006-03-09 21:04:39 +00:00
tonio
89bf1216c8 mention SUSE_PREFER=10.0 in coments (but keep 9.1 as default) 2006-03-09 20:44:45 +00:00
jlam
dc0ed7d769 Reimplement OSS audio handling in pkgsrc. Add two new files:
oss.buildlink3.mk
	oss.builtin.mk

that work like modern buildlink3.mk and builtin.mk files do.  We no
longer support audio/oss (which will be removed shortly).  Mark
ossaudio.buildlink3.mk for deprecation after all references to it
have been replaced with "oss.buildlink3.mk" in package Makefiles.
2006-03-09 20:23:13 +00:00
jlam
ddf2e29cda Check that INFO_FILES is defined before using its value. Fixes PR pkg/33043. 2006-03-09 16:39:39 +00:00
rillig
1b68c0a8f7 Since the REPLACE_INTERPRETER is used in more and more packages, it is
not good style to make the package author define variables from the
pkgsrc-internal namespace. The variables REPLACE.* and REPLACE_FILES.*
can now be used as replacements for _REPLACE.* and _REPLACE_FILES.*.
Support for the old variable names will be removed after 2006Q2.
2006-03-09 15:58:10 +00:00
jlam
51cac88fb9 Reimplement the info-file handling so that we use an +INFO_FILES
scriptlet to manage the info-file registration.  The new scriptlet's
template is install/info-files.  Remove obsolete texinfo.mk and
install/install-info.

No changes to package Makefiles are necessary -- the re-implementation
is internal to pkgsrc infrastructure.
2006-03-09 00:20:27 +00:00
minskim
732edfe9b5 Teach the tools framework about Darwin's tclsh and wish. 2006-03-08 21:18:43 +00:00
minskim
5f391d7eae Set LOWER_OPSYS_VERSUFFIX on Darwin. 2006-03-08 01:56:46 +00:00
reed
242b073d74 For the user or group removal message, don't set they can be removed
if no other packages are using them, but if no other "software" is using
them. Just in case, they are using a user and/or group without a package
using it.
2006-03-07 20:31:17 +00:00