Return-Path: X-Original-To: apmail-incubator-lucy-dev-archive@www.apache.org Delivered-To: apmail-incubator-lucy-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C9459719 for ; Sat, 25 Feb 2012 10:30:07 +0000 (UTC) Received: (qmail 44270 invoked by uid 500); 25 Feb 2012 10:30:07 -0000 Delivered-To: apmail-incubator-lucy-dev-archive@incubator.apache.org Received: (qmail 44216 invoked by uid 500); 25 Feb 2012 10:30:07 -0000 Mailing-List: contact lucy-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@incubator.apache.org Delivered-To: mailing list lucy-dev@incubator.apache.org Received: (qmail 44198 invoked by uid 99); 25 Feb 2012 10:30:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 10:30:06 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.17.8] (HELO moutng.kundenserver.de) (212.227.17.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 10:29:57 +0000 Received: from [192.168.178.26] (mnch-5d867b64.pool.mediaWays.net [93.134.123.100]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MARiQ-1S8LdL0H7q-00BZu2; Sat, 25 Feb 2012 11:29:37 +0100 Message-ID: <4F48B81B.8030705@aevum.de> Date: Sat, 25 Feb 2012 11:29:47 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: lucy-dev@incubator.apache.org References: <20120224205425.GA16270@rectangular.com> In-Reply-To: <20120224205425.GA16270@rectangular.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:A2Mg9PymzEs+lIddKOr9CJ/l0+y9HFmbiM/nW4m6LJ+ 27dekkuI1KOWCE351FfipJkVYEIslqCJPyFZNwPMOV9+VMCcXh ROQztbw7YlyA/ZBiRNxspbOvEdWUAVALTMBinJVX3vU5NU6C4J guHUk+q2fn7Md9nEGUxuMXKyxyC6tlnj5TrrzGX5/B8i9crmvI 6LhKoEXrecMcwxjJUYbSc2X5mO5Wb7A63EqjIf/DsC/vKYZrmj 0fuV31LRlIHr8BjkCbOMlvXT6HHwJ2E/CgcE+w3FFTd+Lvs8Ij qYl+KsMxYGlUEg2URq75XaGtJ4WP+7561l4um4P7d/lLxw1gjF m/gTl0mwfEezsF4OQYyo= X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-dev] Header file installation On 24/02/2012 21:54, Marvin Humphrey wrote: > We can provide similar functionality from Lucy.pm. Here's how a build script > for a distro which extends Lucy might use it: > > eval "use Lucy;"; > if ($@) { > warn "Can't load Lucy; > exit(0); > } > my $include_dirs = Lucy->include_dirs; > my $inc = ""; > $inc .= "-I$_ " for @$include_dirs; > > At first, I imagine include_dirs() returning only a single directory. > However, in the future we may break out Clownfish, and perhaps include_dirs() > should return the include paths for recursive dependencies: > > package Lucy; > use Clownfish; > > sub include_dirs { > my $dirs = Clownfish->include_dirs; > push @$dirs, _lucy_include_dir(); > return $dirs; > } +1 > For the actual header tree, how about a dedicated directory at the following > location? > > catdir( $ARCH_DIR, 'auto', 'Lucy', '_include' ); Here are some other modules that I found that install header files: http://packages.debian.org/sid/amd64/pdl/filelist http://packages.debian.org/sid/amd64/libglib-perl/filelist http://packages.debian.org/sid/amd64/perl-tk/filelist They don't put the .h files below 'auto' which makes sense, because afaics 'auto' should only contain files used by AutoLoader. I like the idea of an '_include' directory, so I would propose: catdir( $ARCH_DIR, 'Lucy', '_include' ); Nick