Package::Package(Builder &b, const string &n):
builder(b),
name(n),
+ label(string(1, toupper(n[0]))+n.substr(1)),
prepared(false),
use_pkgconfig(true)
{
DataFile::ObjectLoader<Package>(p)
{
add("if_arch", &Loader::if_arch);
+ add("label", &Package::label);
add("require", &Loader::require);
}
Builder &builder;
std::string name;
+ std::string label;
Requirements requires;
BuildInfo export_binfo;
Builder &get_builder() const { return builder; }
const std::string &get_name() const { return name; }
+ const std::string &get_label() const { return label; }
const Requirements &get_required_packages() const { return requires; }
const BuildInfo &get_exported_build_info() const { return export_binfo; }
IO::print(out, "prefix=%s\n", builder.get_prefix().str());
IO::print(out, "source=%s\n\n", spkg.get_source_directory());
- IO::print(out, "Name: %s\n", spkg.get_name());
+ IO::print(out, "Name: %s\n", spkg.get_label());
IO::print(out, "Description: %s\n", spkg.get_description());
IO::print(out, "Version: %s\n", spkg.get_version());