source: trunk/dports/_resources/port1.0/group/obsolete-1.0.tcl @ 99444

Last change on this file since 99444 was 99444, checked in by pixilla@…, 7 years ago

_resources/port1.0/group:

  • Make "obsolete" PortGroup work with subports.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: obsolete-1.0.tcl 99444 2012-11-05 13:51:40Z pixilla@macports.org $
3
4# Copyright (c) 2012 Markus Weissmann <mww@macports.org>
5# Copyright (c) 2012 The MacPorts Project
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions are
10# met:
11#
12# 1. Redistributions of source code must retain the above copyright
13#    notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright
15#    notice, this list of conditions and the following disclaimer in the
16#    documentation and/or other materials provided with the distribution.
17# 3. Neither the name of Apple Computer, Inc. nor the names of its
18#    contributors may be used to endorse or promote products derived from
19#    this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32#
33#
34# Usage:
35#
36#   replaced_by         name-of-port-that-deprecated-this-port
37#   PortGroup           obsolete 1.0
38
39# set a number of reasonable defaults for a port that is only there to
40# inform users that they should uninstall it and install something else
41# instead; you might want to override some of the defaults though.
42
43platforms           darwin
44maintainers         nomaintainer
45supported_archs     noarch
46
47description         this port is only a stub and has been made obsolete by ${replaced_by}
48
49long_description    ${description}
50
51homepage            http://www.macports.org/
52
53archive_sites
54distfiles
55
56pre-configure {
57    ui_error "${subport} has been made obsolete by the port ${replaced_by}. Please install ${replaced_by} instead."
58    return -code error "obsolete port"
59}
60
61livecheck.type      none
Note: See TracBrowser for help on using the repository browser.