make-rules/install.rb.mk
author Laszlo Peter <laszlo.peter@oracle.com>
Wed, 13 Jul 2016 14:48:26 -0700
changeset 6410 3ae42b2b5dad
parent 5682 94c0ca64c022
permissions -rw-r--r--
PSARC/2016/355 cachetools - Extensible memoizing collections and decorators PSARC/2016/356 funcsigs - Backport of the PEP 362 function signature features from Python 3.3's inspect module PSARC/2016/358 pika-pool - pika connection pooling library PSARC/2016/362 pika - Python AMQP client library PSARC/2016/402 appdirs - Platform-specific application directories Python module PSARC/2016/430 requestsexceptions - find the path to exceptions in the requests library PSARC/2016/431 python-editor - Programmatically open an editor, capture the result PSARC/2016/432 rJSmin - Javascript Minifier PSARC/2016/433 unicodecsv - CSV python module with unicode support 22996389 The appdirs module should be added to Userland 22960798 The Python module cachetools should be added to Userland 22961272 The Python module funcsigs should be added to Userland 23528657 The Python pika module should be added to Userland 23520215 The Python pika-pool module should be added to Userland 23757060 The python-editor module should be added to Userland 23757078 The rJSmin python modules should be added to Userland 23757069 The requestsexceptions python module should be added to Userland 23757082 The unicodecsv python module should be added to Userland 23747719 update Babel to 2.3.4 23206271 Upgrade cffi to 1.5.2 23206346 Upgrade enum to 1.1.6 23206525 Upgrade filechunkio 1.6 23206568 Upgrade formencode to 1.3.0 23206878 Upgrade librabbitmq to 1.6.1 23206931 Upgrade markdown to 2.6.6 23206993 Upgrade markupsafe to 0.23 23119312 Upgrade pygments to 2.1.3 23207180 Upgrade pyparsing to 2.1.4 23207199 Upgrade pyrabbit to 1.1.0 23207670 Upgrade pytz to 2016.4 23209215 Upgrade rfc3986 to 0.3.1 23210233 Upgrade waitress to 0.9.0 23210235 Upgrade webtest to 2.0.21 23760103 Incorrect version of pymemcache delivered
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5355
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5355
diff changeset
    22
#
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 4252
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents: 1482
diff changeset
    26
VENDOR_RUBY = /usr/ruby/$(RUBY_VERSION)/lib/ruby/vendor_ruby/$(RUBY_LIB_VERSION)
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    28
# install into proto area
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    29
INSTALL_RB_DESTDIR_OPTION = --destdir=$(PROTO_DIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    30
# use correct version of Ruby rather than the one calling install.rb
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    31
INSTALL_RB_RUBY_OPTION = --ruby=$(RUBY)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    32
# ensure the bin dir is not a
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    33
# Ruby-version-specific directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    34
INSTALL_RB_BINDIR_OPTION = --bindir=$(USRBINDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    35
# install into vendor_ruby instead of site_ruby
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    36
INSTALL_RB_SITELIBDIR_OPTION = --sitelibdir=$(VENDOR_RUBY)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    37
# install into standard man directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    38
INSTALL_RB_MANDIR_OPTION = --mandir=$(USRSHAREMANDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    39
# ensure the sbin dir is not a
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    40
# Ruby-version-specific directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    41
INSTALL_RB_SBINDIR_OPTION = --sbindir=$(USRSBINDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    42
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    43
INSTALL_RB_OPTIONS += $(INSTALL_RB_DESTDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    44
INSTALL_RB_OPTIONS += $(INSTALL_RB_RUBY_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    45
INSTALL_RB_OPTIONS += $(INSTALL_RB_BINDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    46
INSTALL_RB_OPTIONS += $(INSTALL_RB_SITELIBDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    47
INSTALL_RB_OPTIONS += $(INSTALL_RB_MANDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    48
INSTALL_RB_OPTIONS += $(INSTALL_RB_SBINDIR_OPTION)
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
# install.rb scripts do not have any concept of 'build' so make this a
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
# no-op
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
	$(COMPONENT_PRE_BUILD_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
	$(COMPONENT_POST_BUILD_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
	$(TOUCH) $@
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    57
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    58
# install the source into the proto directory
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    59
$(BUILD_DIR)/%/.installed:      $(BUILD_DIR)/%/.built
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    60
	$(COMPONENT_PRE_INSTALL_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    61
	(cd $(SOURCE_DIR) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    62
                ./install.rb $(INSTALL_RB_OPTIONS) )
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    63
	$(COMPONENT_POST_INSTALL_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    64
	$(TOUCH) $@
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    65
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2054
diff changeset
    66
REQUIRED_PACKAGES += runtime/ruby